> I am trying to write a simple regex for it but its not working for me.
$temp = ~s/^'$//g; Well, you're heart is in the right place but ... ;-> The 'anchors' here: carret "^" meaning "beginning of string" and the "$" meaning "end of string", are limiting your match to match a string w/ only a single quote in it. You want to get any quote. You probably want to put the tilda "~" back next to the '=' sign too, so: $temp =~ s/'//g; is how to remove all single quotes. Another route is 'tr' and the "delete" flag: $temp =~ tr/'//d; does the same thing. I've heard 'tr' is more efficient, if that matters (probably doesn't). a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] VOICE: (608) 261-5738 FAX 264-5932 "Procrastination is like putting lots and lots of commas in the sentence of your life." Ze Frank http://lifehacker.com/software/procrastination/ze-frank-on-procrastination-235859.php _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
