[KLUG Members] Standard Regular Expressions (REs)

Vernon members@kalamazoolinux.org
Mon, 24 Mar 2003 11:51:19 -0500


Adam Williams wrote:

>Your e-mail regex is too restrictive (at least as I'm interpreting it).  
>E-mail addresses may contain a plus sign to the right of the address.
>
>adam+presentations.ldavp3@morrison-ind.com as an example.
>

You might notice that I said my RE for e-mail could be better.
Do you have a better suggestion?

>>But notice, one of these messy characters, [~!@#$%^&*()_+=],
>>    
>>
>
>Are underscores permitted the the left of the "@"?  Recent testing has 
>reveals that most MTAs on the internet seem the barf on them.  
>

Again, we are looking for a list of "standard regular expressions".
We really do not want to go through all of the RFCs to figure this out.
What is open-source about anyway?
Somewhere out in the OSS community, this exists ... we hope.

>To the right of the "@" can be essentially ANY BINARY VALUE.  The days of 
>ASCII only DNS is gone. (See RFC2181).  At least by mid-2004 there will be 
>more eastern internet users than there will be in the west, so it is better 
>to be prepared for this.
>

My point exactly.

>>What are the "less frightening" differences between REs in Java and Perl?
>>    
>>
>
>regex should be the same everywhere.
>

Are you more naive than I am?  How is that possible?

Vernon