title: Typescript: How to write long regexp in 2 lines
body: <p>I use tslint and when I write long regexp in typescript</p>
  
  <pre><code>var re = /^(([^&lt;&gt;()\[\]\\.,;:\s@"]+(\.[^&lt;&gt;()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  </code></pre>
  
  <p>I got error - exceeds maximum line length of 140.</p>
  
  <p>Does anybody know how to write it in 2 lines. I can do that with a hack. But I'm not satisfied with this solution.</p>
  
  <pre><code>    var r1 = /^(([^&lt;&gt;()\[\]\\.,;:\s@"]+(\.[^&lt;&gt;()\[\]\\.,;:\s@"]+)*)|(".+"))/;
      var r2 = /@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
      var re = new RegExp(r1.source + r2.source);
  </code></pre>