jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Regular expression extractor / multiline matching
Date Wed, 03 Aug 2005 15:51:13 GMT
On 03/08/05, Nop Lists <nop.lists@gmail.com> wrote:
> Thanks, Sebb, the following works like charm:
> RegExp: (?s)(<select name="orderData.secAccountId".*?<option
> value="([0-9]*)" selected="selected">)

([0-9]+) would be better, unless you want to match value=""

> Template: $2$
> 
> However I am a bit confused about numbering the template.
> My understanding is:
> $1$ is what matched starting at <select and ending at selected">

Yes.

In this case it is the same as $0$, because you have enclosed the whole Regex.

So you could drop the outer parentheses and use $1$ instead.

> .*? is not counted as it is not in paranthesis.

Not any more - but previously it _was_ in parentheses.

> $2$ is what matched with ([0-9]*)

Yes, now that (.*) has become .*?

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


Mime
View raw message