There's more than one way to do things | |
PerlMonks |
Re^2: stripped punctuationby thealienz1 (Pilgrim) |
on Oct 06, 2005 at 20:20 UTC ( [id://498036]=note: print w/replies, xml ) | Need Help?? |
After looking at your regexp I took to simplifying my needs with: $word =~ s/^[^\w\d]+(.*?)[^\w\d]+$/$1/; My intention is remove everything that is not a letter or number up to the first letter, pull everything up till the last non letter or digit. When I look at it it makes sense, but my testing it does not work. Update It works on the simple example I gave for 'Wilmer!'. I was running word count with a script as the input and the odd results I was seeing were the syntax in the script. I apologize.
In Section
Seekers of Perl Wisdom
|
|