title: Can Javascript RegExp do partial case insensitivity?
body: <p>I want to know if Javascript RegExp has the ability to turn on and off case insensitivity within the regular expression itself. I know you can set the modifier for the entire regex expression, but that isn't what I'm talking about.</p>
  
  <p>For example, my search string could be:<br />
  <code>teXT To seArcH TOP SECRET</code>.</p>
  
  <p>I want to find the insensitive case part "text to search" and then force case sensitivity for "TOP SECRET". </p>
  
  <p>Thus, this wouldn't match (because of case sensitivity for top secret):<br />
  <code>teXT To seArcH Top Secret</code></p>
  
  <p>but this would match (first section case doesn't matter):<br />
  <code>text to search TOP SECRET</code></p>
  
  <p>In Perl, <a href="http://www.perlmonks.org/?node_id=517522" rel="nofollow">you can do this</a> within the search string. Does Javascript's regular expression engine support anything like this?</p>