Note: this will match "words" containing anything that is not whitespace. This may or may not be what you want. For example, should this be two different words?
word_1,word_2
If so, you could use a regex that matches a more traditional definition of a word:
/(\w*_\w*)/g
\w matches "word characters": alphanumeric characters plus underscores.
In reply to Re^2: extracting words with certain characters
by ColonelPanic
in thread extracting words with certain characters
by geek09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |