- or download this
s/\bold\b/new/gi;
# 1: replaces all instances of the string, e.g. "old",
...
s/\bOLD\b/NEW/gi;
# 4: replaces same variants of "OLD" as in 1 with "NEW"
- or download this
#!/usr/bin/perl
use YAPE::Regex::Explain;
print YAPE::Regex::Explain->new(qr/\bold\b/i)->explain;
- or download this
The regular expression:
...
) end of grouping
----------------------------------------------------------------------