On 23/07/2009, S.D. <sidd.da...@gmail.com> wrote:
> Hi.
>
>  I'm having some trouble with the regular expression extractor.  I can't
>  seem to get the right Jmeter regex to work, though other regex's do.  I
>  feel like the line breaks in the response might be messing me up ..

See:

http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html

>  I'm trying to extract the user name from the response with an assertion.
>  I have this expression in my extractor.  It is set to look at the
>  response text and the boolean is 'Contains'.  My template is set to $1
>  $:
>
>  The current user is:\r+(.*)

\r only matches CR; you also need to match \n (LF)

Try

The current user is:[\r\n]+(.*)

You can test using

http://jakarta.apache.org/oro/demo.html

>  <font color="red">The current user is:
>  LASTNAME, FIRSTNAME INITIAL
>
>  </font>
>
>  Shouldn't this work ?  I never seem to find anything.
>
>  Thanks !
>  --sidd
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>

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

Reply via email to