Code: Select all
Blah blah blah, some more goes here (thanks, Bob), here is some more (via Boing Boing)I've pieced together a regex that matches everything, but excludes the parenthesized substrings:
Code: Select all
/(\(.+?\))*?\,/Moderator: General Moderators
Code: Select all
Blah blah blah, some more goes here (thanks, Bob), here is some more (via Boing Boing)Code: Select all
/(\(.+?\))*?\,/Code: Select all
$str = "your text...";
preg_match_all('/([^(,]|\(.*?\))+/', $str, $m);
print_r($m);