Monday, November 29, 2010

Re: Validation Rules Help

This is merely off the top of my head and only for the domain part,
not the username or the @.

/^([a-zA-Z0-9\-]+)\.([a-zA-Z]{2,3})(\.[a-zA-Z]{2,3})?$/

On Nov 28, 4:17 pm, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> This one I have been putting off for a while and finally getting around to
> trying to solve it.
>
> Maybe I just do not know enough about international domain extensions but
> what I need is a domain to match the email.
>
> So take me for example m...@davemaharaj.com would match davemaharaj.com easy
> enough.
>
> But getting into international domain some end in .com.au yet their email
> ends in .com so sure break the url  apart at the (.)
>
> Now the problem kicks in. No subdomains are allowed as a requirement for
> validation so any domain with something.some.extension are not valid.
>
> So I have been playing around with getting DNS MX records to make sure the
> domain is actually real but it seems almost impossible to determine if a
> domain is actually a sub-domain or if it is actually just a domain with an
> extended international domain.
>
> And to make things just that much better just finding random foreign sites
> with international domain extension like the .com.au I see their contact
> email is the same as the domain minus the .au.it ends in .com whats up with
> that? Why would the domain be .com.au on the web yet email be .com? I tried
> just typing in the url minus the .au and it directs to the full extension.
> Like I said maybe I just do not know enough about how the extensions work.
>
> Any and all insight would be great.
>
> Thanks,
>
> Dave

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: