s# ([(][^)]*[)]) # my $x=$1; $x =~ s/,/;/g; $x #xeg
Update: I added the "; $x" that I originally left out. It makes me long for an extra modifier for s/// that copies the string before modifying it and then returns the modified string. It would be perfect for use with map.
- tye (but my friends call me "Tye")In reply to Re: Regex substitution
by tye
in thread Regex substitution
by orthanc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |