[thelist] Email Validator

Shoshannah Forbes xslf at xslf.com
Thu Dec 6 02:27:10 CST 2001


‭> ‬From‭: ‬Chris‭ ‬Spruck‭ <‬cspruck at mindspring‭.‬com‭>‬
‭> ‬Subject‭: ‬Re‭: [‬thelist‭] ‬Email‭ ‬Validator
‭> <‬OE‭34‬jnzi‭95‬HfqR‭77‬bie‭0001‬c‭9‬e‭2‬@hotmail‭.‬com‭>‬
‭> <003‬c‭01‬c‭17‬dac‭$0‬bba‭7320$‬d‭255‬a‭8‬c‭0‬@ws‭.‬pu‭.‬ru‭>‬
‭> ‬Reply‭-‬To‭: ‬thelist at lists‭.‬evolt‭.‬org

‭> ‬In‭ ‬the‭ ‬above‭ ‬expression‭, ‬you‭ ‬could‭ ‬make‭ ‬the‭ ‬dot‭ ‬optional‭ ‬by‭ ‬following‭ ‬it
‭> ‬with‭ ‬a‭ ‬question‭ ‬mark‭ ‬like‭ ‬this‭:‬
‮> ‬
‭> ‬\‭.?[‬A‭-‬Za‭-‬z‭0-9]+$/‬
‮> ‬
‭> ‬The‭ ‬question‭ ‬mark‭ ‬there‭ ‬means‭ ‬ONLY‭ ‬a‭ ‬single‭ ‬dot‭ ‬is‭ ‬allowed‭, ‬but‭ ‬the‭ ‬dot‭ ‬is
‭> ‬optional‭. ‬Change‭ ‬the‭ ? ‬to‭ ‬an‭ ‬asterisk‭ (‬\‭.*[‬A‭-‬Za‭-‬z‭0-9]+$) ‬and‭ ‬it‭ ‬becomes
‭> "‬ANY‭ ‬number‭ ‬of‭ ‬dots‭ ‬are‭ ‬allowed‭, ‬but‭ ‬they‭ ‬are‭ ‬optional‭". ‬Thus‭ ‬the‭ ? ‬will
‭> ‬prevent‭ ‬the‭ ‬validation‭ ‬from‭ ‬passing‭ ‬whatever at whatever‭..‬com‭.‬

‭ ‬I‭ ‬wonder‭ ‬what‭ ‬it‭ ‬will‭ ‬do‭ ‬with‭ ‬email‭ ‬addresses‭ ‬like
firstname‭.‬lastname at someplace‭.‬com‭ ? ‬I‭ ‬have‭ ‬seen‭ ‬quite‭ ‬a‭ ‬bit‭ ‬valid‭ ‬email
addresses‭ ‬in‭ ‬that‭ ‬format‭.‬

Regards‭,‬
Shoshannah‭ ‬Forbes






More information about the thelist mailing list