You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ryan Miling <rm...@bzzagent.com> on 2008/08/05 22:36:29 UTC

"Everything but" regular expression

I am interested in using a Regular Expression Extractor that will search
through a page's HTML and extract all numbers except for the number
207161 (within the RegEx).

    Reference Name: x
Regular Expression: type="radio" name="(REGEX)_value"
          Template: $1$
         Match No.: 0
     Default Value: 

Example Matches:
   type="radio" name="207162_value"
   type="radio" name="208000_value"
   type="radio" name="208123_value"
             ...

Only non-match:
   type="radio" name="207161_value"

Any idea what the REGEX should be for this? Gosh darn regular
expressions...

Thanks,
Ryan

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


Re: "Everything but" regular expression

Posted by mburns <m....@digiden.de>.
Hi,

I would try a negative lookahead assertion, which would look  
something like this:

Regular Expression: type="radio" name="(?!207161)(\d+)_value"


Greetings,
Max



Am 06.08.2008 um 04:29 schrieb Mohamed Niyas:

> Hi Ryan,
>
> Try this. It might work. Select the match no as "1".
>
> Regular Expression: type="radio" name="((\d+).*?)_value"
> Template: $1$
> Match No.: 1
> Default Value: -1
>
> Regards
> Mohamed.
>
>
> On 8/6/08, Ryan Miling <rm...@bzzagent.com> wrote:
>>
>> I am interested in using a Regular Expression Extractor that will  
>> search
>> through a page's HTML and extract all numbers except for the number
>> 207161 (within the RegEx).
>>
>>    Reference Name: x
>> Regular Expression: type="radio" name="(REGEX)_value"
>>          Template: $1$
>>         Match No.: 0
>>     Default Value:
>>
>> Example Matches:
>>   type="radio" name="207162_value"
>>   type="radio" name="208000_value"
>>   type="radio" name="208123_value"
>>             ...
>>
>> Only non-match:
>>   type="radio" name="207161_value"
>>
>> Any idea what the REGEX should be for this? Gosh darn regular
>> expressions...
>>
>> Thanks,
>> Ryan
>>
>> ---------------------------------------------------------------------
>> 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


Re: "Everything but" regular expression

Posted by Mohamed Niyas <ni...@gmail.com>.
Hi Ryan,

Try this. It might work. Select the match no as "1".

Regular Expression: type="radio" name="((\d+).*?)_value"
Template: $1$
Match No.: 1
Default Value: -1

Regards
Mohamed.


On 8/6/08, Ryan Miling <rm...@bzzagent.com> wrote:
>
> I am interested in using a Regular Expression Extractor that will search
> through a page's HTML and extract all numbers except for the number
> 207161 (within the RegEx).
>
>    Reference Name: x
> Regular Expression: type="radio" name="(REGEX)_value"
>          Template: $1$
>         Match No.: 0
>     Default Value:
>
> Example Matches:
>   type="radio" name="207162_value"
>   type="radio" name="208000_value"
>   type="radio" name="208123_value"
>             ...
>
> Only non-match:
>   type="radio" name="207161_value"
>
> Any idea what the REGEX should be for this? Gosh darn regular
> expressions...
>
> Thanks,
> Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

Re: "Everything but" regular expression

Posted by rmiling <rm...@bzzagent.com>.
Thanks for the help, everything worked out perfectly=)
-- 
View this message in context: http://www.nabble.com/%22Everything-but%22-regular-expression-tp18839487p18857103.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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