This is true...
Though I'm taking the easy way out and assuming a fairly simple
subset of the total valid email addresses. Given my audience, I know
that the IT dept on campus follows certain rules that don't take them
into the realm of really wonky email addresses such as a mailbox on a
NFS share :-D
Also, I've basically just coded my regex for the "display name" to
accept anything except the email address delimiters < and > and the
email field delimiter \r\n...
I'm much more comfortable with this whitelist approach to email
addresses that may have some wonky valid false negatives than I am
with having a super complex regex just to fall perfectly within the RFC.
On Oct 29, 2007, at 2:17 PM, Seth Dillingham wrote:
On 10/29/2007, Errol Sayre said:
A few people provided some sample expressions to match email
addresses, however does anyone have an expression for matching the
allowable characters that can be an "email address label"?
You may not realize what a can of worms you're opening here. In the
first edition of Mastering Regular Expressions, friedl provides a
regex that's 6,598 characters long, for matching all the stuff that
can go into a valid email address.
He also provides one that is "only" 4,724 characters long, but it
runs slower.
Seth
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>