It ought to be possible using something like:

org\.apache\.struts\.taglib\.html\.TOKEN.*?="?([\da-f]+)

This assumes that the token value is only hex characters, and the
character following it will never be a hex character.

S
On 03/03/06, Gareth Western <[EMAIL PROTECTED]> wrote:
> I had this same question a couple of weeks ago. The best way is to just
> use TWO regular expressions (one for each case), store the results in
> two variables (e.g. result1 and result2) then concatenate the two into
> one (e.g result). I came close to getting a single regular expresssion
> to do it all in one, but never got it quite right.
>
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I tried to catch a struts-token from the responce data but I can“t find the
> > right expression.
> >
> > There are two possible layouts:
> >
> > 1. org.apache.struts.taglib.html.TOKEN=8e2a7662a96db8af07ec5f73482d8e00
> > 2. name="org.apache.struts.taglib.html.TOKEN"
> > value="82cdbbcaf1ca130f966624702f348d4e"
> >
> >
> > Does anybody know a regular expression to catch the token.
> >
> > Regards Torste
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to