title: Using Regex as delimeter to split a string
body: <p>I want to split the following strings into two substrings.
  "somestring(otherstring)"</p>
  
  <p>I came with the following regex split</p>
  
  <pre><code>"somestring(otherstring)".split(/(.+)\((.+)\)/)
  </code></pre>
  
  <p>but this excludes the following strings, which dont have the substring in braces..
  "somestring"</p>
  
  <p>how can change the regex so that, even if there is not substring of the pattern "(otherstring)", it still generates the first substring as output.</p>
  
  <p>thanks a lot in advance!</p>