title: Regex to find a substring using regex
body: <p>I'm using regex with Groovy(Grails) to find a substring which is a combination of capitalized alphabets, underscores and digits only.</p>
  
  <p>The regex </p>
  
  <pre><code>"THIS_WORD" ==~ /([A-Z_0-9]*)/
  </code></pre>
  
  <p>returns <code>true</code>
  (
  but the following statement</p>
  
  <pre><code>def str = "Wlkjjf alkjdfas Wk;ljdfs fk THIS_WORD dsklafjf kjd".findAll{([A-Z_0-9]*)/}
  println str
  </code></pre>
  
  <p>returns <code>[W, W, T, H, I, S, _, W, O, R, D]</code></p>
  
  <p>I need only the word <code>THIS_WORD</code> not alphabet W that is repeated twice. 
  What am I missing here?</p>