Works great, but how I keept the spaces?<br><br><br><br><div><span class="gmail_quote">On 10/3/06, <b class="gmail_sendername">Miles Crawford</b> &lt;<a href="mailto:mcrawfor@u.washington.edu">mcrawfor@u.washington.edu</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Crap!<br><br>How about this instead:<br><br>$foo = 'string\' with 
b@d `chars';<br><br>$foo =~ s/[^a-z0-9]//ig;<br><br>I forgot the 'g' - the first one only removed the first bad char.<br><br>You may also want to add a ' ' to the a-z0-9 bit to preserve spaces.<br><br>-miles<br><br><br><br>
<br>On Tue, 3 Oct 2006, Miles Crawford wrote:<br><br>&gt;<br>&gt;<br>&gt; Luis,<br>&gt;<br>&gt; Try something like this:<br>&gt;<br>&gt;<br>&gt; $foo = 'string\' with b@d `chars';<br>&gt;<br>&gt; $foo =~ s/[^a-z0-9]//i;<br>
&gt;<br>&gt; But read <a href="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</a> first ;)<br>&gt;<br>&gt; -miles<br>&gt;<br>&gt;<br>&gt; On Tue, 3 Oct 2006, luis medrano wrote:<br>&gt;<br>&gt;&gt; List,
<br>&gt;&gt;<br>&gt;&gt; I need to remove this character ' but I'm using linux if I copy paste<br>&gt;&gt; it will show something like this â. any idea how can I fix this or<br>&gt;&gt; how can I just remove everything except numbers and letters?
<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt; luis<br>&gt;&gt; _____________________________________________________________<br>&gt;&gt; Seattle Perl Users Group Mailing List<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; POST TO: <a href="mailto:spug-list@pm.org">
spug-list@pm.org</a><br>&gt;&gt; SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list">http://mail.pm.org/mailman/listinfo/spug-list</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;MEETINGS: 3rd Tuesdays<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;WEB PAGE: <a href="http://seattleperl.org/">
http://seattleperl.org/</a><br>&gt;<br></blockquote></div><br>