If these numbers will always be at the end of the Location URL, you could
use this: Location:.*/(\d+)\s*$

If is not guaranteed that these number will be in the last part of Location
URL, try this instead: Location:.*/(\d+)\p{Punct}?

Obs.: I'm considering that there will be only one part of the URL
containing numbers. If this is not guaranteed, add part of the URL to the
expression, like these:

Location:.*/pub/WS/(\d+)\s*$
or
Location:.*/pub/WS/(\d+)\p{Punct}?

This site has also a good variety of Regular Expression example with
detailed descriptions: http://www.regular-expressions.info/

Hope it helps.
Flávio Cysne

2012/9/13 ZK <[email protected]>

> Hi,
> for the example you gave the RegEx would be:
> http://www\.Test\.org/pub/WS/([\d]+)
>
> there are plenty of RegEx tutorials on the net, such as:
> http://www.zytrax.com/tech/web/regex.htm
> http://www.zytrax.com/tech/web/regex.htm
>
>
> ZK
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/help-Regular-expression-extractor-tp5714744p5714781.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to