Let's say I have the following three strings:
(section1){stuff could be any character, i want to grab it all}
(section1)(section2){stuff could be any character, i want to grab it all}
(section1)(section2)(section3){stuff could be any character, i want to grab it all}
So if applied regex to my expressions, for the first I would get:
section1
stuff could be any character, i want to grab it all
if applied regex to my expressions, for the second I would get:
section1
section2
stuff could be any character, i want to grab it all
and if applied regex to my expressions, for the third I would get:
section1
section2
section3
stuff could be any character, i want to grab it all
I have the following regex:
((?<section>.+))+{?<term>.+}
So look for inside parens and repeat and then what's inside the curly brackets. It doesn't seem to work Any clue? This has always been my Achille's heel.