On Thu, Feb 10, 2011 at 10:51 PM, Trejkaz <[email protected]> wrote: > In the same way, > > { :domain_in => /\.edu\./ } > > Would be a different validation rule to > > { :domain_in => /\.jp$/ }
Well, OK, the format of a standalone domain name is mostly considered the same. > But nonetheless, the *core* of the matter is that the format for "an > email address" does not change - the subset of values you permit does. The format for an email is not, as was written earlier in this thread.There are email addresses that are not conformant to all related RFCs but perfectly usable at least in the context of a certain deployment. OTOH there are more or less esoteric RFC conformant email address formats that are not much used or no longer supported by all current mailservers and not desirable in some applications. Examples: * addresses with IPv4 address literals * addresses with not fully qualified domains that are completed by the mail submission agent * addresses with internationalized domain names, maybe stored before punycode conversion ... Similar cases can be made for URLs. So yes, the fomat of email addresses and URLs may be quite different in different applications. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
