title: Regular expressions in couchdb's views version 1.4
body: <p>I have a view with regular expression. </p>
  
  <pre><code>var reg = /^(.*)\s\(([0-9]+)\)$/;
  var res = reg.exec(baseName);
  </code></pre>
  
  <p>but after installing a new server I'm getting an error like this:</p>
  
  <pre><code>Log :: function raised exception (new TypeError("reg.exec is not a function", "undefined", 6)) with doc._id
  </code></pre>
  
  <p>Any ideas how to make regexps working with 1.4 couchdb on Ubuntu server?</p>