[thelist] Quick and dirty Reg Ex question

Iain iain at firelightning.com
Wed Oct 26 13:35:54 CDT 2005


^[a-zA-Z0-9_.-]+@[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*(\.[a-zA-Z0-9]{2,})*$

Why does this pattern test correctly in Javascript, but not in PHP?

Thanks,

Iain




More information about the thelist mailing list