title: Regex Replace issue
body: <p>I tried to use regex replace method to replace <code>xxx="yyy"</code> pattern of text in given string like. </p>
  
  <p>My pattern is : <code>/^[a-zA-Z0-9.;:|_-]+="[a-zA-Z0-9.;:_-]+\"/</code></p>
  
  <p>Code:</p>
  
  <pre><code>var userinput = '&lt;div id="c16430" style="color:red;" class="css-btn"&gt;';         
  var pattern = /^[a-zA-Z0-9.;:|_-]+="[a-zA-Z0-9.;:_-]+\"/;
  userinput = userinput.replace( pattern, "Replaced..." );
  </code></pre>
  
  <p>But it is not working... <a href="http://jsfiddle.net/xw9Bu/3" rel="nofollow">jsfiddle</a>. What is wrong?</p>
  
  <p>Thanks in advance..</p>