http://qs1969.pair.com?node_id=308899


in reply to Re: Matching brackets in Regular Expression
in thread Matching brackets in Regular Expression

Yeah,
if (index($text, $stub) >= 0) { # Do something }
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.