This obviously won't work how I intend, but how would I do this?my $new_value='$2 and $1'; my $string="(Jack) and (John)"; my $regex=qr/$string/; $string=~s/$regex/$new_value/;
In reply to Re: Constructing a list of regexes
by fletcher_the_dog
in thread Constructing a list of regexes
by fletcher_the_dog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |