in reply to Re: Regex substitution
in thread Regex substitution
That should work. Although I'd probably write that as:s# ([(][^)]*[)]) # my $x=$1; $x =~ s/,/;/g ; $x #xeg
s{ \( (.*?) \) }{ my $x = $1; $x =~ tr/,/;/; $x; }gsex;
-- Randal L. Schwartz, Perl hacker
|
|---|