in reply to Regexp substitution using variables
For certain flags you can do:
$value =~ s/(?$flags:$pattern)/$replacement/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp substitution using variables
by Bod (Parson) on Nov 25, 2020 at 23:17 UTC | |
by LanX (Saint) on Nov 25, 2020 at 23:30 UTC |