title: Groovy/Java split string on parentheses "("
body: <p>I am trying to perform a split similar the following:</p>
  
  <pre><code>println "Hello World(1)".split("W");
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[Hello , orld(1)]
  </code></pre>
  
  <p>I want to perform this split:</p>
  
  <pre><code>println "Hello World(1)".split("(");
  </code></pre>
  
  <p>But I see:</p>
  
  <pre><code>Caught: java.util.regex.PatternSyntaxException: Unclosed group near index 1 (
  </code></pre>
  
  <p>Is there a way I can escape this parentheses? Any help is appreciated.</p>