On 24 April 2014 20:24, mpistella <[email protected]> wrote:
> sebb-2-2 wrote
>> On 24 April 2014 19:11, mpistella &lt;
>
>> mpistella@
>
>> &gt; wrote:
>>> cthoong wrote
>>>> Thought can't do "OR" condition in assertion, now only found out just
>>>> add
>>>> " | " between 2 set of value in 1 "Patterns to Test" instead of 2
>>>> Patterns.
>>>
>>> You actually must add two of the "or" vertical lines like so: "||"
>>> between
>>> 2 sets of values in only one "Patterns to Test"
>>
>> I don't think that is correct.
>> A single vertical bar is the standard meta character used to separate
>> alternates.
>
> Java, Javascript, and Beanshell all use "||" as the standard "or" operator.

That is for code, not regexes.
Java/Beanshell also use | for bitwise logical OR

> So I am assuming jmeter uses this standard as well. Couldn't find anything
> in the help file confirming this though.

JMeter uses Perl-style regexes which use | for alternation.

>
>
>
> --
> View this message in context: 
> http://jmeter.512774.n5.nabble.com/response-assertion-using-multiple-patterns-tp4442287p5719885.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to