title: android regex error
body: <p>That is my text i want to do regex</p>
  
  <pre><code>    url: 'http://stackoverflow.com/questions/33048725/ocamllex-regex-syntax-error'
  
  },
  </code></pre>
  
  <p>That is normal form of regex</p>
  
  <pre><code>url:\s'(.*)'\s*},
  </code></pre>
  
  <p>Yhat is inside eclipse version with escape</p>
  
  <pre><code>url:\\s'(.*)'\\s*},
  </code></pre>
  
  <p>but android studio gives error. </p>
  
  <pre><code>Caused by: java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index :
  </code></pre>
  
  <p>It shows last letter. <code>,</code></p>
  
  <p>this <code>,</code> is faulty.</p>
  
  <p>i define patter like this</p>
  
  <pre><code> pattern = "url:\s'(.*)'\s*},"
  </code></pre>
  
  <p>Why?</p>
  
  <p>I also used with backslash but still same. This time it shows <code>\</code> in front of coma.</p>