On 1 December 2010 16:37, Rob Schroder <[email protected]> wrote:
> 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.

That depends on what you put in the Template.

If you use $1$, it will pick the contents of the first () pair.

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

See above.

> 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 :')

No, see above.

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

Reply via email to