However, having two regex isn't always a bad thing. Personally, I think your code reads easier and is more intuitive; my only change would be from if (/^[^0-9]+$/) to unless (/\d/)if (my @words = /(\b.*?\b)/g and not grep {/\d/} @words) { print @words; # Do stuff. }
perl -e 'print "I love $^X$\"$]!$/"#$&V"+@( NO CARRIER'
In reply to Re: Reg Ex help
by Chmrr
in thread Reg Ex help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |