[KLUG Members] Standard Regular Expressions (REs)

Vernon members@kalamazoolinux.org
Mon, 24 Mar 2003 13:07:36 -0500


Adam Williams wrote:

>>Somewhere out in the OSS community, this exists ... we hope.
>>    
>>
>
>I'm not aware of one, but RFC822 should contain 99% of what you want.  I
>know several people have written wild procmail scripts for mail
>filtering, they might be able to help (assuming they are reading).
>

RFC822 is great, but it does not contain a list anything like this:
social security number
\d{3}-\d{2}-\d{4}
phone number
\(\d{3}\) (\d{3}-\d{4})
e-mail
[\w\.\-]+@[\w\.\-]+
url
...

Even if we could find something close, and then fix it up as best we can.
Just keep your eye out for something like it.

Vernon