As much as I wonder why you would do it apparently the odd network admin
does and its valid.

 

100% of the time this little bit of regex has served me well until now.

 

^[\w\.-]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]+$

 

But I have a need to validate an email address that has an apostrophe before
the @ e.g. fred.o'[email protected]  - I've tried a variety
of suggestions but all have caused errors in CF. The context I'm using it in
is.

 

<CFIF
REFindNoCase("^[A-Za-z0-9_\.-]{1,}\@([[:digit:]a-zA-Z-]{1,}\.){1,}[[:digit:]
a-zA-Z-]+$" , TheEmailAddress) EQ 0>

 

I found this which took a standards based approach but they error in CF -
http://www.regular-expressions.info/email.html

 

I wonder if any you good folk have a little bit of regex or suggestions that
might fix this annoying little problem.

 

Thank you.

 

 

++++++++++

Kevin Parker

 

m: 0418 815 527

 

++++++++++

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to