title: Google Scripts match regex
body: <p>Using google scripts I'm trying to match a string part that always looks like this: 
  *YYYYMMDD;hhmm* 
  for example: *20170701;0900*</p>
  
  <p>I defined this regex:</p>
  
  <pre><code>var regExp = ('(?:\*)(?P&lt;date&gt;\d+)(?:\;)(?P&lt;time&gt;\d+)(?:\*)','gi');
  </code></pre>
  
  <p>and then call it using:</p>
  
  <pre><code>var datepart = textbody.match(regExp);
  </code></pre>
  
  <p>However I'm not getting any match, although the same text in <a href="https://regex101.com/" rel="noreferrer">https://regex101.com/</a> works well. Any idea what I'm doing wrong?</p>