in reply to Removing special characters

By way of explaining the solutions, the s/a/b/ command will substitute text on the first instance that the regular expression matches. If you want to replace every instance, you need the 'g' (global) modifier: s/a/b/g

Also, the y command replaces every instance by default but doesn't use regular expressions.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

Replies are listed 'Best First'.
Re^2: Removing special characters
by jeiku (Acolyte) on Mar 27, 2006 at 05:11 UTC
    Thank you everyone for your replies and explanations!