I'm hoping someone can see the problem in the following Regex replace example done using Flex:
remainder=inputString.replace(
"\\("+bracketContents+"\\)(\\s)*(and|or)*(\\s|$)+",
"");
For the following example:
Input: "a and (e or f)"
the normal regex expression given above would be:
\(e or f\)(\s)*(and|or)*((\s)+|$)+
which should leave a remainder string of "a and ", as I confirmed using http://gskinner.com/RegExr/ (Flex based) among others. It's all pretty standard stuff, so I hope it's not a Regex engine support issue. Thank you in advance.
EDIT: Including "/" in Flex String-based regex expression above doesn't change anything.