You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2009/10/01 00:27:11 UTC
Re: using variable in a RegExp extractor
On 30/09/2009, cmrz <cm...@yahoo.com> wrote:
>
> I can't get the debug working right. Enabling debug does not seem to do
> anything and I am not sure how to get this log file.
>
> Can you let me know how to do this and I will move forward?
> thanks!
>
"Try enabling Debug for the RE Extractor - select it in the tree and
use the Help menu."
The debug messages are written to the jmeter.log file.
You may be able to solve the problem by using the following RE:
PostingGridView\\$ctl(\d+).+\n.+${BATCH}
i.e. try \\ before $ instead of just \.
> --
> View this message in context: http://www.nabble.com/using-variable-in-a-RegExp-extractor-tp25662317p25682417.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
Re: using variable in a RegExp extractor
Posted by sebb <se...@gmail.com>.
On 02/10/2009, cmrz <cm...@yahoo.com> wrote:
>
>
> THAT WORKED !!!! thank you!
>
> can you please tell me why that worked ? what does adding the extra \ do?
When parsing the string for function references, certain characters
(such as $) are treated specially. E.g. if one wants to enter the
string ${X} and not have it treated as a variable reference, it needs
to be entered as \${X}. However the \ must then be removed. Using \\$
means that the final string will contain \$.
If the string does not contain any function/variable references, it is
used as is.
> thanks again!!
>
>
>
> > You may be able to solve the problem by using the following RE:
> >
> > PostingGridView\\$ctl(\d+).+\n.+${BATCH}
> >
> > i.e. try \\ before $ instead of just \.
>
>
> --
>
> View this message in context: http://www.nabble.com/using-variable-in-a-RegExp-extractor-tp25662317p25721227.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
Re: using variable in a RegExp extractor
Posted by cmrz <cm...@yahoo.com>.
THAT WORKED !!!! thank you!
can you please tell me why that worked ? what does adding the extra \ do?
thanks again!!
> You may be able to solve the problem by using the following RE:
>
> PostingGridView\\$ctl(\d+).+\n.+${BATCH}
>
> i.e. try \\ before $ instead of just \.
--
View this message in context: http://www.nabble.com/using-variable-in-a-RegExp-extractor-tp25662317p25721227.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