title: Why does my Perl regex complain about "Unmatched ) in regex"?
body: <pre><code>if($title =~ s/(\s|^|,|\/|;|\|)$replace(\s|$|,|\/|;|\|)//ig)
  </code></pre>
  
  <p>$title can be a set of titles ranging from President, MD, COO, CEO,...</p>
  
  <p>$replace can be (shareholder), (Owner) or the like.</p>
  
  <p>I keep getting this error. I have checked for improperly balanced '(', ')', no dice :(</p>
  
  <pre><code>Unmatched ) in regex; marked by &lt;-- HERE in m/(\s|^|,|/|;|\|)Owner) &lt;-- HERE (\s|$|,|/|;|\|)/
  </code></pre>
  
  <p>If you could tell me what the regex does, that would be awesome. Does it strip those symbols?  Thanks guys!</p>