title: Android Pattern matching (not matching)
body: <p>I am trying to match "\b\w+:" inside the string "Search\nPrefix with tag: app: or text:"</p>
  
  <p>The code looks like:</p>
  
  <pre class="lang-js prettyprint-override"><code>String s = "Search\nPrefix with tag: app: or text:";
  SpannableString str = SpannableString.valueOf(s);
  Pattern regex = Pattern.compile("\\b\\w+:");
  Matcher m = regex.matcher(str);
  
  while(m.find()) {
     // do stuff
  }
  </code></pre>
  
  <p>I followed the code with the debugger, in Eclipse, and the while loop is never entered, meaning m.find() returns false.
  I tried to change the regex to the straightforward</p>
  
  <pre class="lang-js prettyprint-override"><code>Pattern regex = Pattern.compile("app:");
  </code></pre>
  
  <p>It should work, right?, it is the same explicit text from the string. But still there is no match.
  I suspect that the matcher stops matching when it reaches the newline in the string. And somehow there must be a flag or something to tell the matcher to scan the whole string.</p>