mhpreiman
2/13/2018 - 11:31 PM

regex

Targeting groups with match

match() returns an array
match()[0] returns the whole matched string
match()[1] returns the first group
match()[2] returns the second group etc..

Remove double-quotes () around the word: