title: Using groovy to replace string with regex not working
body: <p>I am trying to replace the following artLeadStr with &quot;mj211f&quot; using regex in groovy but does not seem to work. Please help.</p>
  <p>Ex: result in error</p>
  <pre><code>def artLeadStr = &quot;[JONES,MIKE - mj211f]&quot;
  def artLeadIdResult = artLeadStr.replaceAll([a-z](\S{5}))
  System.out.println(artLeadIdResult)
  </code></pre>