Thanks for the tip about the combo box!

The problem with the regular expression that you suggest, csrf-token" 
content="([^"]+), is that it leaves <csrf-token" content="> in the result.

What I need is to be able to just grab the dynamic string, in this case: 
6yuQXuFV5rx2tE5/QL0V9jclw0HnWK+4madV9uAwOsg=

>From this line:
<meta name="csrf-token" content="6yuQXuFV5rx2tE5/QL0V9jclw0HnWK+4madV9uAwOsg="/>

Like I said, the string is a dynamic value.  For example:
<meta name="csrf-token" content="sXpW2DRUpZHgE3lIWjkTmlQYGrY7Gyi6pOhW14pfWvw="/>


I guess since look behind isn't supported, I'll have to use a subexpression.  
It's just not immediately clear how to do it :')

Regards,
Rob


On 11/30/10 11:13 PM, "Milamber" <[email protected]> wrote:

Hello,

Regexp can be testing directly on JMeter in View Results Tree with
Regexp tester view (combo list). JMeter use ORO as regexp engine.

Try this :

csrf-token" content="([^"]+)

Milamber

Le 01/12/2010 01:51, Rob Schroder a ecrit :
> Hi,
>
> I'm trying to use the Regular Expression Extractor.  I've verified that I can 
> use it to parse out simple text.  But, when I try to parse the following 
> string:
>
> 6yuQXuFV5rx2tE5/QL0V9jclw0HnWK+4madV9uAwOsg=
>
> Form this HTML snippet:
>
> <meta name="csrf-param" content="authenticity_token"/>
> <meta name="csrf-token" 
> content="6yuQXuFV5rx2tE5/QL0V9jclw0HnWK+4madV9uAwOsg="/>
>
> The Regular Expression Extractor doesn't find the string.
>
> I've verified that the following regular expression works using a regular 
> expression editor:
>
> (?<="csrf-token" content=").*(?=")
>
> Any ideas on why this isn't working, or how to debug this?
>
> Thanks...Rob
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Reply via email to