title: extract substring using regex in groovy
body: <p>If I have the following pattern in some text:</p>
  
  <pre><code>def articleContent =  "&lt;![CDATA[ Hellow World ]]&gt;"
  </code></pre>
  
  <p>I would like to extract the "Hellow World" part, so I use the following code to match it:</p>
  
  <pre><code>def contentRegex = "&lt;![CDATA[ /(.)*/ ]]&gt;"
  def contentMatcher = ( articleContent =~ contentRegex )
  println contentMatcher[0]
  </code></pre>
  
  <p>However I keep getting a null pointer exception because the regex doesn't seem to be working, what would be the correct regex for "any peace of text", and how to collect it from a string?</p>