One way:
The construct [rdnfqm] defines a "character class". Please see perlre, perlrequick, and perlretut.c:\@Work\Perl>perl -wMstrict -le "my $string = 'abcdef'; ;; my $pattern = qr{ [rdnfqm] }xms; ;; print qq{matched '$1' at offset $-[1]} if $string =~ m{ ($pattern) }xms; " matched 'd' at offset 3
In reply to Re^3: search of a string in another string with 1 wildcard
by AnomalousMonk
in thread search of a string in another string with 1 wildcard
by carolw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |