in reply to Regular expression question
But other solutions are possible as well.my %repl = qw / < < > > foo bar bar foo /; $wrapper =~ s/([<>]|foo|bar)/$repl{$1}/g;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regular expression question
by TASdvlper (Monk) on Jan 16, 2004 at 16:53 UTC | |
by Abigail-II (Bishop) on Jan 16, 2004 at 17:00 UTC | |
by TASdvlper (Monk) on Jan 16, 2004 at 19:16 UTC | |
by Abigail-II (Bishop) on Jan 16, 2004 at 20:17 UTC | |
by TASdvlper (Monk) on Jan 19, 2004 at 14:51 UTC |