in reply to Re: stripped punctuation
in thread stripped punctuation
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: stripped punctuation
by fishbot_v2 (Chaplain) on Oct 06, 2005 at 20:50 UTC | |
by thealienz1 (Pilgrim) on Oct 06, 2005 at 21:37 UTC | |
by fishbot_v2 (Chaplain) on Oct 06, 2005 at 21:45 UTC | |
by Nkuvu (Priest) on Oct 06, 2005 at 21:50 UTC |