title: Java regex pattern matching for word ending with asterix literal
body: <p>I'm trying to make a simple regex pattern work using java. I need to recognize any uppercase word ending with trailing asterisk with a sentence. From the following example :
  <code><pre>
  Test ABC*  array
  </pre></code>
  I need to identify "ABC*" or to be precise, any word with upper-casing ending with an asterisk. I tried the following pattern matching with my limited regex knowledge, but it hasn't worked out so far.
  <code><pre>
  String text = "Test ABC*  array";
  Matcher m = Pattern.compile("\b[A-Z]+[*]?\b").matcher(text);
  </pre></code>
  Any pointers will be appreciated.</p>
  
  <p>Thanks</p>