You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by ZK <st...@gmail.com> on 2014/02/10 15:39:36 UTC

Re: Need help to write regular expression

Hi,
try:
group_owner:([\d]+)



ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719308.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Need help to write regular expression

Posted by ZK <st...@gmail.com>.
groups.+?(\d+)



--
View this message in context: http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719366.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Need help to write regular expression

Posted by Flavio Cysne <fl...@gmail.com>.
Try this:

groups\s*:\s*(\d+)


2014-02-17 6:10 GMT-03:00 ZK <st...@gmail.com>:

> Hi,
> No it is not to do with the extra spaces before the word groups
>
> I suspect the response you posted not the format of the response you are
> getting
> could you check and repost the response where the regEx is not working
>
> (All three examples should work for you)
>
> ZK
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719361.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Need help to write regular expression

Posted by ZK <st...@gmail.com>.
Hi,
No it is not to do with the extra spaces before the word groups

I suspect the response you posted not the format of the response you are
getting
could you check and repost the response where the regEx is not working

(All three examples should work for you)

ZK 



--
View this message in context: http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719361.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Need help to write regular expression

Posted by ZK <st...@gmail.com>.
Hi,
try:
groups: (.+?),

or

groups: ([\d]+),


or

groups: ([\d]+)


All the above will work



ZK



--
View this message in context: http://jmeter.512774.n5.nabble.com/Need-help-to-write-regular-expression-tp5719305p5719320.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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