I have been banging my head all day trying to figure out how to formulate what seems to be a tricky regex expression. Here we go:
NAME=JOHN,SMITH
I want to select "JOHN" and "SMITH" (not the comma nor the equals sign)
In other words, I want an expression to select LETTERS after an equals sign (while not including the equals sign itself) regardless of whether or not the letters/words are separated by a comma. I'm afraid I can't change the formatting.
Thanks. I'm using JavaScript btw.
EDIT: Here is what I managed to put together so far. /=(\D[^=\n,]+)/g However, this still selects the equals sign and doesn't add any other words that may come after a comma.
/NAME=(\w+),?(\w+)?/