in reply to Re: Re: Regular expression question
in thread Regular expression question

Your right. I should have added a little more whitespace to clarify things :)

$re = qr[ ( the (?{ $rep = 'The' }) | quick (?{ $rep = 'Quick' }) | brown (?{ $rep = 'Brown' }) | fox (?{ $rep = 'Fox' }) ) ]x;

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!