I found the fix guys!!! Amazing what a little Googling will do. :P
Rey...
Rey Bango wrote:
> Guys,
>
> I have the following email check but it won't accept a .info email
> address. I'm not a regular expression expert and was hoping someone
> could help me out with this. How could I update the following script to
> accept domain suffixes other than .com, .net & .org?
>
> function isEmail(str) {
> // are regular expressions supported?
> var supported = 0;
> if (window.RegExp) {
> var tempStr = "a";
> var tempReg = new RegExp(tempStr);
> if (tempReg.test(tempStr)) supported = 1;
> }
> if (!supported)
> return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
> var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
> var r2 = new
> RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
> return (!r1.test(str) && r2.test(str));
> }
>
> Rey...
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208095
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54