I have the following data
Animals = Dog Cat Turtle \
Mouse Parrot \
Snake
I would like the regex to construct a match of just the animals with none of the backslashes: Dog Cat Turtle Mouse Parrot Snake
I’ve got a regex, but need some help finishing it off.
/ANIMALS\s*=\s*([^\\\n]*)/
How ’bout the regex
\b(?!Animals\b)\w+\bwhich matches all words that aren’tAnimals? Use thescanmethod to collect all such matches, e.g.