N
nick.p.doyle
(I'm actually writing this in vb.net but the .net group gave no
response to my regex q's)
Given a "typical string for a search" containing quoted phrases and
logical operators
e.g. betty AND "the jets"
I want to match first "the jets" then the " and ", then anything else.
My current regex for "a or b" is "( or )|(.+)", because I thought the
alternation operator would operate in an ordered fashion but apparently
not.
Advice most welcome, thanks.
Nick
response to my regex q's)
Given a "typical string for a search" containing quoted phrases and
logical operators
e.g. betty AND "the jets"
I want to match first "the jets" then the " and ", then anything else.
My current regex for "a or b" is "( or )|(.+)", because I thought the
alternation operator would operate in an ordered fashion but apparently
not.
Advice most welcome, thanks.
Nick