Question about regular expression (for email addresses)
-
I am working on a page with some email validation (classic asp) and I have a regex checking email addresses: ^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w][^_]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$ This worked perfectly, it allows multiple periods in the domain name, hyphens, etc. I have one issue though, I need it to allow for single-character domains (like 3.com). I am not very skilled in regex.
______________________ Oh Hamburgers!
-
I am working on a page with some email validation (classic asp) and I have a regex checking email addresses: ^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w][^_]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$ This worked perfectly, it allows multiple periods in the domain name, hyphens, etc. I have one issue though, I need it to allow for single-character domains (like 3.com). I am not very skilled in regex.
______________________ Oh Hamburgers!
See this site http://regxlib.com/ here you can find as well as test your regular expression. :cool:
!- F - R - I - E - N - D - S -!