[prev in list] [next in list] [prev in thread] [next in thread]
List: jmeter-user
Subject: Re: regular expression question
From: sebb <sebbaz () gmail ! com>
Date: 2008-02-29 18:20:01
Message-ID: 25aac9fc0802291020r77f26717p14379cdd8d070a9e () mail ! gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic