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 question
Date Fri, 29 Feb 2008 18:20:01 GMT
On 29/02/2008, Tom Fernandes <anyaddress@gmx.net> wrote:
> Hi,
>
>  I would like to cut down the following expression (it's one line):
>
>  (?sm)XXX.*?name="(.*?)".*?value="(.*?)".*?name="(.*?)".*?value="(.*?)".*?name="(.*?)".*?value="(.*?)".*name="quoteIdentifier"
>
>  what I want is to match
>
>  name="(.*?)".*?value="(.*?)"
>
>  one or more times. I tried
>
>  (?sm)XXX.*?(?:name="(.*?)".*?value="(.*?)")+.*name="quoteIdentifier"
>
>  But it only seems to cut out the first 2 fields.
>
>
>  Any idea how to solve this?

Why not set the match count to -1?

This will match repeatedly.

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

---------------------------------------------------------------------
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