title: How to match a pattern with bracket inside it?
body: <p>I am trying to look for specific phrase inside large text, but the phrase may contain characters like "[", "(", "*", ... like <strong>"name1 (name2"</strong>, but it causes an invalid exception when looking for it. Here is my code :</p>
  
  <pre><code>Pattern myPattern = Pattern.compile( "\\b" + phrase + "\\b" );  // Exception
  Matcher myMatcher = myPattern.matcher( largeText );
  </code></pre>
  
  <p>I have tried to use quote(...) to fix such characters but it didn't work :</p>
  
  <pre><code>phrase = Pattern.quote( phrase );
  </code></pre>
  
  <p><strong>How can i fix this to allow such characters ?</strong></p>