(Let's keep our discussion on the list for all to see.)
On Jun 23, 2004, at 12:44 PM, [EMAIL PROTECTED] wrote:
Let's try to get a little simpler with our approach. Does >this grab what you need?
m/(\W+)$/
James
What a quick response. Thanks.
No problem.
I assume you mean do this? Am I right?
m/(\W+)$/ s/$1//;
No, I don't mean that. Perhaps I didn't understand what you needed. I thought you wanted to capture the characters after the words.
Are you trying to remove them instead? If so, use:
s/\W+$//
That would replace all non-word characters at the end of your string with nothing, deleting them.
If I'm still not getting it, try explaining your goal again.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>