title: python re match equivalent in javascript
body: <p>In Python, you can use re.match(pattern,str) to get the matched groups through "()". For example, if I have:</p>
  
  <pre><code>str = "My name is Derek Last Name"
  re.match("My name is (.+)",str).group(1)
  //output is "Derek Last Name"
  </code></pre>
  
  <p>Is there a way to achieve the same functionality in Javascript?</p>
  
  <p>Thanks</p>
  
  <p>Derek</p>