jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: help for regular expression
Date Fri, 21 Sep 2012 15:01:40 GMT
On 21 September 2012 15:40, lichen970 <lichen970@hotmail.com> wrote:
> the string is " Viewing Messages: *1* to *10* (12 total)"

Start by quoting the meta-characters - in this case "*" and "(" and ")":

Viewing Messages: \*1\* to \*10\* \(12 total\)

Then replace the variables (i.e. numbers) with a suitable RE:

Viewing Messages: \*\d+\* to \*\d+\* \(\d+ total\)

Now add the capturing brackets:

Viewing Messages: \*\d+\* to \*\d+\* \((\d+) total\)

>
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/help-for-regular-expression-tp5714875p5714876.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
>

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


Mime
View raw message