title: regex syntax javafx
body: <p>A silly question, I am not sure what is wrong in the following javafx regex syntax. Netbeans complains illegal escape character in whole of this regex string,</p>
  
  <pre><code>var pattern:String = "(\/S*)(ftp|http|https):\/\/(\w+:\{0,1\}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&amp;%@!\-\/]))?";
  </code></pre>
  
  <p>Any help is greatly appreciated. Thanks a bunch.</p>
  
  <p>Cheers,
  Abi</p>