in reply to Re^3: search of a string in another string with 1 wildcard
in thread search of a string in another string with 1 wildcard
in fact, your code shouldn't be some thing like
my $pattern = qr{ab[crdnfqm]def}; if $string =~ m{ ($pattern) }; ....
which doesn't find all strings with the pattern.
I don't understand trailing xms at the end of pattern.
I think you should forget my previous solution as the user should type all the qr which is not convenient
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: search of a string in another string with 1 wildcard
by AnomalousMonk (Archbishop) on Oct 12, 2014 at 20:57 UTC | |
by carolw (Sexton) on Oct 15, 2014 at 11:17 UTC | |
by AnomalousMonk (Archbishop) on Oct 15, 2014 at 14:58 UTC |