Given the following simplified example text;
not me G(select me, and me)
G(select me) G(also me)
using regex
expressions I would like to select everything between the G(...)
as separate results even if there is, for example, a comma. Based on different answers here on SO this was my first attempt;
G\(([^)]+)\)
Works perfectly for second line but not so much for the first. My second attempt based on some other answers for selecting values from comma separated list;
G\(([^),]+)
Another attempt based on this SO, and another based on this SO.
Basically, I need help...
Expected output:
select me
and me
select me
also me