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
To extend this problem to any number of wildcards (and not necessarily 1), would it be elegant and efficient to use the same code and change just
substr($regex, $i, 1) = '.';
to
substr($regex, $i, m) = '.';
where m will be the user's free parameter?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: search of a string in another string with 1 wildcard
by roboticus (Chancellor) on Jul 19, 2014 at 13:26 UTC | |
by carolw (Sexton) on Jul 19, 2014 at 19:08 UTC | |
by roboticus (Chancellor) on Jul 19, 2014 at 22:42 UTC | |
by carolw (Sexton) on Jul 27, 2014 at 14:53 UTC | |
by roboticus (Chancellor) on Jul 27, 2014 at 16:59 UTC | |
by carolw (Sexton) on Jul 28, 2014 at 18:59 UTC | |
by roboticus (Chancellor) on Jul 29, 2014 at 03:52 UTC | |
by carolw (Sexton) on Jul 29, 2014 at 09:05 UTC |