in reply to Re: search of a string in another string with 1 wildcard
in thread search of a string in another string with 1 wildcard
I would like to slightly change the question:
How to modify the code, exactly '.' if the pattern to be matched is a fixed string and one character is not any character but can be a character in a set of characters at the same position:
$pattern = 'abcdef';
at the 3rd position, c could only be replaced by any character in the set {r,d,n,f,q,m}, for ex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: search of a string in another string with 1 wildcard
by AnomalousMonk (Archbishop) on Oct 12, 2014 at 16:03 UTC | |
by carolw (Sexton) on Oct 12, 2014 at 16:57 UTC | |
by AnomalousMonk (Archbishop) on Oct 12, 2014 at 20:48 UTC | |
by carolw (Sexton) on Oct 12, 2014 at 18:18 UTC | |
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 |