jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serpent_Guard <bluegate...@gmail.com>
Subject Re: Regex - Null Default values
Date Thu, 18 Dec 2008 22:16:32 GMT

Nope, that doesn't work.  Apparently, it evaluates the variable first, so
when the variable points to a null value, it acts as if I hadn't entered
anything in at all for the default value.


Himanshu Ghai wrote:
> 
> i think i was able to get around this by declaring a
> user variable and not giving any value for it..then
> using it in the default value field..can you try if it
> works?
> 
> Himanshu
> 
> On Wed, Dec 17, 2008 at 9:38 PM, Serpent_Guard
> <bluegate010@gmail.com>wrote:
> 
>>
>> This isn't so much a question about regex as it is about how the JMeter
>> regex
>> component works.  The Default Value is what's assigned to the variable
>> whenever there isn't a match.  I want the default value to be an empty
>> string.  Is this possible?  Is there some escape character sequence that
>> translates to a null string?
>>
>>
>>
>> sudheer reddy wrote:
>> >
>> > Hi
>> >
>> > check this link
>> >
>> http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html
>> >
>> >
>> > I hope it will help ur need
>> >
>> > Thanks & Regards
>> > Sudheer
>> >
>> >
>> > On 12/18/08, Serpent_Guard <bluegate010@gmail.com> wrote:
>> >>
>> >>
>> >> In my regex extractors, I want the default value to be an empty
>> >> string.  Just
>> >> leaving it blank, it currently ignores the variable syntax and outputs
>> >> the
>> >> raw '${var_name}' whenever there isn't a match.  Anyone know how to do
>> >> this?
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Regex---Null-Default-values-tp21064019p21064019.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
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Regex---Null-Default-values-tp21064019p21067319.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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Regex---Null-Default-values-tp21064019p21081991.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


Mime
View raw message