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

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.