Jul 14, 2013, 1:59 AM
Post #2 of 4
To really give a reliable answer we would need to know what the SOMETHING is.
This is quick test under the Perl debugger:
DB<1> $string = "the quick brown (fox), the (lazy), dog.";
DB<2> $string =~ s/(\(.+?\)),/$1 ,/g;
DB<3> p $string
the quick brown (fox) , the (lazy) , dog.
So it seems to be doing what you want. But it might not work if you have nested parens with commas in your SOMETHING.