in reply to Re^3: Break string into array
in thread Break string into array

That is all true, but it does satisfy the OPs requirement/example :)

Replies are listed 'Best First'.
Re^5: Break string into array
by ikegami (Patriarch) on Sep 18, 2009 at 16:22 UTC
    No. Allowing AND and OR at the same level is explicitly disallowed by his requirements. It's clearly wrong to use AND when the string contains OR and vice-versa, even if it wasn't explicitly stated. I suppose there's no harm is allowing a leading OR or AND. Finally, the parser also didn't do it's job wrt quoted strings. A parser that doesn't parse is buggy.