Stripping Out Single Quotes

Is Coranto not working properly for you? Here's where to ask for support help; for best results, follow these steps:
  • - Check your core/addon documentation for possible solutions
  • - Search these forums for similar problems that have already been solved
  • - If you're still stumped, check out THIS TOPIC, and post your question in this forum!!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

Stripping Out Single Quotes

Postby Darren » Mon Feb 18, 2008 5:01 am

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?

Posts: 44
Joined: Sat Oct 30, 2004 9:20 pm

Postby SrNupsen » Mon Feb 18, 2008 6:25 am

You could try the Search and Replace addon as well, replacing each single quote in the Subject with... eh, nothing :)
Coranto is free software. I am available for custom work or troubleshooting. - transkripsjon, webdesign, nettsider, tekstbyrå - satire, politikk, kultur, sport, nettavis
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests