Gossamer Forum
Home : General : Perl Programming :

string manipulation question

Quote Reply
string manipulation question
i want to remove all punctuation from a string, but keep spaces. is this the best way to do it?

Code:
$fixlink = $EVENT->{details}->{'title'};
$fixlink =~ s/[\s]/qqqqq/g;
$fixlink =~ s/[\W]//g;
$fixlink =~ s/qqqqq/ /g;
Subject Author Views Date
Thread string manipulation question delicia 1491 Dec 18, 2010, 10:57 AM
Post Re: [delicia] string manipulation question
Andy 1416 Dec 19, 2010, 2:08 AM