in reply to Re: Regex substitution
in thread Regex substitution

Ahh... tye just left out one thing:
s# ([(][^)]*[)]) # my $x=$1; $x =~ s/,/;/g ; $x #xeg
That should work. Although I'd probably write that as:
s{ \( (.*?) \) }{ my $x = $1; $x =~ tr/,/;/; $x; }gsex;

-- Randal L. Schwartz, Perl hacker