>415  365 2265 (two spaces, then one)
>
>I will end up with 4153652216
>
>There must be some regular expression that will do it, but I haven't been
>able to swing it.
>
>If anyone can offer a solution, I'd be happy to see it.


for that specific case, assuming x-encoded input, i'd suggest:


##  eliminate the space-escapes
$data =~ s/\+//g;

##  eliminate any hex-escape sequences
$data =~ s/%..//g;

##  and eliminate anything that remains and isn't a digit.
$data =~ s/\D+//g;



regexps are handy, but it's easier to use a sequence of simple ones than a
single complex monster.







mike stone  <[EMAIL PROTECTED]>




____________________________________________________________________
--------------------------------------------------------------------
 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