On 10 Jun 2016, at 3:09, jimimaseye wrote:

REGEXP:  I dont mind having a go at reading them (I have written some
myself) but, as you know, even though some are easy and obvious sometimes it can be like reading music - a blur of blobs, dots and squiggles that take a lot of deciphering. Of course, many of them rely on 'functionality' of the plugins (which I cant say I would fully understand) and the understanding of a RULE structure (some are easy and obvious, some are very convoluted).

(I recently developed this one from scratch: Its an RFC2822 email address
validator:
^(?=.{1,64}@)("[^<>@\\]+"|(?!\.|.*\.(\.|@))[^<>
@\\"]+)@(\[(\d{1,3}\.){3}\d{1,3}\]|\[IPv6:(?:[A-Fa-f\d]{1,4}:){7}[A-Fa-f\d]{1,4}\]|(?=.{1,255}$)((?!-|\.|\d+($|\.))[a-zA-Z\d-]{0,62}[a-zA-Z\d])(|\.(?!-|\.|\d+($|\.))[a-zA-Z\d-]{0,62}[a-zA-Z\d]){1,126})$

Very proud of it too.  )


So, you thought validating email addresses was a problem demanding a solution? And you "solved" it with a regular expression?

Congratulations on now having 2 problems. They should be very happy together.

Reply via email to