Consider the following string:
(first group) (second group) (third group)hello example (words(more words) here) something
The desired matches would be:
(first group)
(second group)
(third group)
(words(more words) here)
I've tried to build a regex as follows:
/\(.*?\)/g
But it matches the following:
(first group)
(second group)
(third group)
(words(more words)
Any ideas?