My email address I enter always fails -- valid or not. I've tried several regexes I've found googling, but they always fail. Is my PHP wrong? Or is it the regex?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
D'oh! I was concentrating on finding a good regex and forgot to put delimiters on my regex. This are the kinds of things that make me look stupid in public.
I'll give that one a try too, ninja. See which one i like better. Thanks.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
[edit number 2] If you change {2,} to {2,6} I think it will be the most accurate you can get. I don't think there are any 7 letter TLDs.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
[edit] I'm entirely guessing that that email is non-rfc compliant.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Well here's a regex that my class and I made for a Perl lab that we did. Works with the large majority that's out there. We have yet to find anything wrong with it other than the top level domain area. (e.g. for instance you could have an email like this: al_fred@woopiedoo.superman . If it's not obvious the (dot)superman shouldn't exist unless some higher up in the government wanted it to or whatever... lol)
Edit: the previous regex code I had here had allowed some obviously invalid emails (example: whatever@second@at_symbol.com )
Here's the code that we had just recently optimized for a PHP Helpdesk project.