i'm attempting to match the outer round brackets pair in a string...but can't seem to be able to define it correctly.
this is what i need the preg_match_all function to acomplish:
let's say i have a string like this:
weeeeeeee (blabla lala() lalalala () (aaaaa(bkbk))) whaaaaaaaa wuuuu ( damn)
i want it to match the most outer pairs of round brackets...meaning that first match in preg_match_all in the upper case would return:
(blabla lala() lalalala () (aaaaa(bkbk)))
and the second match would be:
I hope you can all understand the problem =)