title: Character class (e.g. '\\w') may not me used inside character range
body: <p>I tried to use image URL regex inside my android app and i get the</p>
  
  <p><code>Character class (e.g. '\\w') may not me used inside character range</code> error.</p>
  
  <p>My regex is </p>
  
  <p><code>"http(s?)://([\\w-]+\\.)+[\\w-]+(/[\\w- ./]*)+\\.(?:[gG][iI][fF]|[jJ][pP][gG]|[jJ][pP][eE][gG]|[pP][nN][gG]|[bB][mM][pP])"</code></p>
  
  <p>The error is in <code>(/[\\w- ./]*)</code></p>
  
  <p>And the code </p>
  
  <pre><code>String pattern = "http(s?)://([\\w-]+\\.)+[\\w-]+(/[\\w- ./]*)+\\.(?:[gG][iI][fF]|[jJ][pP][gG]|[jJ][pP][eE][gG]|[pP][nN][gG]|[bB][mM][pP])";
      Pattern linkPattern = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
      Matcher pageMatcher = linkPattern.matcher(data);
  </code></pre>
  
  <p>Thanks in advance for the help!</p>