Page 1 of 1

Stripping Out Single Quotes

PostPosted: Mon Feb 18, 2008 5:01 am
by Darren
Hi all,

I am in need of a Perl snippet to remove single quotes from my Subject. I tried this in the <PerlCode> tags:

$SubjectNoQuotes = $Subject;
$SubjectNoQuotes =~ s/^'(.*)'$/$1/;

No errors, but it also failed to remove the single quotes. What am I doing wrong here?


PostPosted: Mon Feb 18, 2008 6:25 am
by SrNupsen
You could try the Search and Replace addon as well, replacing each single quote in the Subject with... eh, nothing :)