was just what I was going to suggest. A regex may simply be too much of a tool. I've often wished I had a little electric typewriter for addressing envelopes, rather than going through monkeyshines trying to print envelopes and get the orientation, etc., correct. Simplest is best, sometimes.if (index($text, $stub) >= 0) { # Do something }
In reply to Re: Re: Matching brackets in Regular Expression
by melora
in thread Matching brackets in Regular Expression
by Levan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |