title: Flex String replace regex problem
body: <p>I'm hoping someone can see the problem in the following Regex replace example done using Flex:</p>
  
  <pre><code>remainder=inputString.replace(
       "\\("+bracketContents+"\\)(\\s)*(and|or)*(\\s|$)+",
       "");
  </code></pre>
  
  <p>For the following example:</p>
  
  <p>Input: "a and (e or f)"</p>
  
  <p>the normal regex expression given above would be:</p>
  
  <blockquote>
    <p><code>\(e or f\)(\s)*(and|or)*((\s)+|$)+</code></p>
  </blockquote>
  
  <p>which should leave a remainder string of "a and ", as I confirmed using <a href="http://gskinner.com/RegExr/" rel="nofollow noreferrer">http://gskinner.com/RegExr/</a> (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.</p>
  
  <p>EDIT: Including "/" in Flex String-based regex expression above doesn't change anything.</p>