title: Java regex: Problem with double quotes and word boundary
body: <p>I have a problem with matching text that ends with double quotes and word boudary.</p>
  
  <p>Here is an example.</p>
  
  <p>I need to match: 
  <code>TEST "A"</code> in some text.</p>
  
  <p>If I have the string
  <code>aaa TEST "A" aaa</code> it should match.</p>
  
  <p><code>aaa TEST "A\"\n</code> should also match</p>
  
  <p>If I have the string
  <code>aaa TEST "A"aaa</code> it should not match.</p>
  
  <p>So I've defined my regular expression like this:</p>
  
  <pre><code>.*\bTEST "A"\b.*
  </code></pre>
  
  <p>The problem is that</p>
  
  <pre><code>Pattern.matches(".*\\bTEST \"A\"\\b.*", "aaa TEST \"A\" aaa")
  </code></pre>
  
  <p>return false</p>
  
  <p>I don't understand why.
  Which change should I do the the regex so that is matches ?</p>