title: java groovy to extract two strings
body: <p>I have the following regular expression to find the word called EXTRACT, but I need to find another work called REPLICAT.  So, REPLICAT | EXTRACT. How to do this in one expression. </p>
  
  <pre><code>def matcher =  rawTerminalText =~ /(?m)(EXTRACT +RUNNING +)(.*?\w)( +)(\d{2}):(\d{2}):(\d{2})( +)(.*?\w)( +)(.*?$)/
  </code></pre>
  
  <p>I tried the following, but its not working.</p>
  
  <pre><code>def matcher =  rawTerminalText =~ /(?m)((^| )(REPLICAT|EXTRACT)+$ +RUNNING +)(.*?\w)( +)(\d{2}):(\d{2}):(\d{2})( +)(.*?\w)( +)(.*?$)/
  </code></pre>