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