title: unicode regex pattern not working
body: <p>I am trying to match some unicode charaters sequence:</p>
  
  <pre><code>Pattern pattern = Pattern.compile("\\u05[dDeE][0-9a-fA-F]{2,}");
      String text = "\\n     \\u05db\\u05d3\\u05d5\\u05e8\\u05d2\\u05dc\\n    &lt;\\/span&gt;\\n&lt;br style=\\";
      Matcher match = pattern.matcher(text);
  </code></pre>
  
  <p>but doing so gives this exception:</p>
  
  <pre><code>Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal Unicode escape sequence near index 4
    \u05[dDeE][0-9a-fA-F]+
        ^
  </code></pre>
  
  <p>how can I use still use regex with some regex chars (like "[") to match unicode?</p>
  
  <p>EDIT:
  I'm trying to parse some text. The text somewhere has a sequence of Unicode characters, which I know their code range.</p>
  
  <p>Edit2:
  I am now using ranges instead : <code>[\\u05d0-\\u05ea]{2,}</code> but still can't match the text above</p>
  
  <p>Edit3:
  ok, now it's working, the problem was I used <strong>two</strong> backslashes instead of <strong>one</strong>, both in the regex and text.
  The solution for this is, assuming I know there will be two chars or more:</p>
  
  <pre><code>[\u05d0-\u05ea]{2,}
  </code></pre>