I don’t want to write 3 if conditionsWhy not? It's simpler, and likely to be more efficient than the look ahead solution.
But say you want to look for substrings foo, bar and oba. Should foobar be a valid match? It contains all three substrings, but not without overlap.
In reply to Re: Single string pattern match
by JavaFan
in thread Single string pattern match
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |