in reply to Re^2: Regexp substitution using variables
in thread Regexp substitution using variables
depending on whether or not $flags =~ s/g// succeeds
Testing $flags =~ /g/; is simpler.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regexp substitution using variables
by MikeTaylor (Sexton) on Nov 25, 2020 at 22:48 UTC |