[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] Re: Email address launch feature.
The following bytes were arranged on 7 Jun 2010 by Richard Torrens (lists):
> <Brainache> Currently this line is emailpart {'A-Za-z0-9_\-'}+
>
> I see + in there...
> </Brainache>
>
> But this email was written yesterday on the Iyo... Now I'm on the RPC
> which, indeed, does do it properly. They must be different.
Examine the equivalent quantity on the RPC's modefile and see how it
differs.
The expression above is in advanced search syntax, a reference for which
is in the manual. It translates to 'one or more consecutive occurrences
of alphanumeric characters, _ or -'. (The backslash \ is an escape
character, necessary because here - has a special meaning.)
The squiggly brackets denote a repetition of zero or more times, and the
trailing + limits this to one or more. The single quotes give a list of
acceptable characters to match against, where the dashes between the
letters and the numbers indicate a range (which saves you having to type
out ABCDEFGHIJ... etc.). Therefore, the pertinent part of that
expression is between the single quotes, to which evidently several more
characters must be added to comply with the RFC 5322 specification.
According to Wikipedia, the correct form is:
{'A-Za-z0-9!#$%&\'*+/=?^_`{|}~\-.'}+
Technically, the . must not be the first or last character and must not
appear two or more times consecutively, but I don't think we need worry
about that.
More info:
http://en.wikipedia.org/wiki/E-mail_address
--
__<^>__ "Your pet, our passion." - Purina
/ _ _ \ "Your potential, our passion." - Microsoft, a few months later
( ( |_| ) )
\_> <_/ ======================= Martin Bazley ==========================
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx