in reply to Re: Matching brackets in Regular Expression
in thread Matching brackets in Regular Expression
Yeah,
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 Section
Seekers of Perl Wisdom