jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: using variable as part of regular expression - escapre characters
Date Fri, 09 Jan 2009 10:05:15 GMT
On 08/01/2009, efj <elliott.jones@mclarensoftware.com> wrote:
>
>  Having thought about this in more detail it must be a variable substitution
>  issue only. As my java class, rather than jmeter, is doing the acutal regexp
>  evaluation. So why doesn't ${loopCount} get substituted in the following
>  line of text:
>
>  general000(?!${loopCount})
>
>  when it does in this one:
>
>  general000(${loopCount})

Try displaying the value that passed to the code.
For example,

${__log(general000(?!${loopCount})))

or whatever is more convenient.

>  I'm guessing I have to escape one of these three (?! so that jmeter still
>  recognises ${loopCount} as a variable to be replaced in the text string.
>
>  Though if escape it in the text won't this then change my regexp???
>
>  efj
>
> --
>  View this message in context: http://www.nabble.com/using-variable-as-part-of-regular-expression---escapre-characters-tp21352547p21353202.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message