in reply to Reg Ex help
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'
|
|---|