Re: [SLUG] Standard Regular Expressions (REs)

From: Levi Bard (levi@bard.sytes.net)
Date: Tue Mar 25 2003 - 00:44:11 EST


> What standards other than RFCs do you use?
> Do they contain lists of REs for validating these things?

  Not really anything other than RFCs. The ones I've seen do not contain such REs to my knowledge, although they may contain a verbal description that could be translated into one.

> Have you ever noticed that real life does not conform with the RFCs?

  Outside of the software world, yes. However, with things like mail servers, RFC is the ultimate law. If you communicate using an established protocol, then you HAVE to go by RFC, unless, like many MS products, you don't want to be able to communicate with other types of apps speaking "the same" language. Additionally, allowing things not included in RFC can have unexpected side effects.

> Let's not build the list ourselves, if it already exists.

  Sorry, I began with the assumption that such a list does not exist.

> Again, what we are looking for is a list of "accepted" REs for
> validating things like SS#, e-mail addresses,
> international phone numbers, and URLs. Lots of MTAs reject underscores
> in the first part of an e-mail
> address according to folks on other lists.

  Ouch, I'd be interested to see which MTAs those are. Thousands, perhaps millions of yahoo.com addresses contain underscores (an example being jared_quedens@yahoo.com from an earlier list post), and I'm sure the same applies to many other major "free email" providers.

Levi



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:13:40 EDT