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
In reply to RE: Re: Regex substitution
by merlyn
in thread Regex substitution
by orthanc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |