Clint Stanger wrote:

>Hello,
>I have a page where users send email to other users of the website and I'm 
>having a bt of trouble with them enterning special characters.  The form they 
>fill out is put into a DB table and then sent out every hour.  When my send 
>script tries to send an address with a # or an email addy with a space in it 
>of course it errors.
>I was thinking that the REReplace function would remove certain characters and 
>replace them with an emtpy string but I don't really understand how.  Is there 
>anyone that can give me an example of how to remove #, space, /, and maybe 
>some others from 'my#St ri/ng'?  I've found a few resources on the web but 
>they're all over my head or to shallow.  So if you know an easy way to explain 
>how it works that would be awesome too!
>  
>
Its probably easier/better to go the other way and actually check to see 
if its a valid email address.

Do a google for email regex and you are bound to find a bunch of regular 
expressions for email validation.

Stephen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1271
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to