Oh, indeed I got it wrong.

^(abc)|(def)$

>> I'm a rookie with regular expressions, but isn't it asking: "match 
on
>> starts with 'abc' or ends with def"

True.

>That is correct, to match what I think the original poster suggested
>would be:
>
>^(abc|def)$

That is what I wanted in the first place. My mistake was to think
that the operator (|) operates on the left- and rightmost item which I
suspected would be only c and d in the RE above. I'll need to read
up on RE operator precedence...

Thanks,
Matthias


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to