in reply to Constructing a list of regexes
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/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Constructing a list of regexes
by tall_man (Parson) on Feb 20, 2003 at 22:42 UTC |