Monday, December 5, 2011

chopping off last word in a sentance: perl

$cn=~ s/\s*\b\Q$word\E\b(?!.*\b\Q$word\E\b)//s; will do

No comments:

Post a Comment