> I'm sure this is simple to do, but I can't figure it out. I want to strip
> _every_ occurence of these characters out of an incoming string:
>
> (  ) , . and a blank space
>

How about :

$instr = "(415) 345-4567";

$instr =~ s|[(),.-]+||g;

print $instr;



Hope this helps
Jason


____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to