Jim Hutchinson wrote:
> Would you please share the results with us? I'm dealing with a similar
> problem now, trying to prevent certain characters and strings frm being
> submitted as email addresses, like '#email#' and 'dont'. The code
> I've used
> just isn't working.
I used the snippet of code from grand master stone, but the advice from
others also pointed out a simple fact that I hadn't thought of: I really
just needed to strip the input down to numbers. Pretty easy when thought of
that way. That wouldn't help with your email sitch, though.
I've seen plenty of chunks of javascript code that verify the format of
email addresses. Maybe you could find a chunk and adapt it to your perl
needs.
Jack
>
> Thanks!
> Jim
>
> At 10:13 AM 5/9/98 -0700, you wrote:
> >Problem solved courtesy of the folks on this list. Thanks much.
> >
> >Jack
> >
> >
> >> Question for perl fans:
> >>
> >> 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
> >>
> >> So, if the user sends me (in a POST):
> >>
> >> (415) 365-2216
> >>
> >> 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.
> >
> >
> >____________________________________________________________________
> >--------------------------------------------------------------------
> > 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.
> >---------------------------------------------------------------------
> >
> Free Drawing! 600+ Web Site Sumbissions! Register Today!
> Best of the Planet PEOPLE'S CHOICE Awards, 1998
> http://www.virtualpromotions.com
> mailto:[EMAIL PROTECTED]
> ICQ UIN: 8725493
>
> VIRTUAL PROMOTIONS in affiliation with Computer Expertise Ltd presents
> YOUR free monthly special report . mailto:[EMAIL PROTECTED]
> _________________________________________________________
> "Speak, for your servant is listening."� 1 Samuel 3:10
> _________________________________________________________
>
> ____________________________________________________________________
> --------------------------------------------------------------------
> 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.
> ---------------------------------------------------------------------
>
____________________________________________________________________
--------------------------------------------------------------------
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.
---------------------------------------------------------------------