I understand how to use the regular expressions in JS and PHP. I'm trying to switch some of my PHP code to JS and I have a function that goes through different regular expressions to see if it can find a match.I understand how to use the regular expressions