Javascript Regex Missing Groups
I have this regex expression working as expected on Java environment, but i am unabled to make it work properly on Javascript: /^(?:select\s+)?(?:([\w\d]+)?\.?([\w\d]+))?(?:\s*\,\s
Solution 1:
Remove the g
flag. It is changing your regex from "match and return subpatterns" to "search and return all matches"
Post a Comment for "Javascript Regex Missing Groups"