Rails3 validate email format

On 28 September 2010 18:39, Marnen Laibow-Koser [email protected]
wrote:

Same with
postcodes,

Really? Shouldn’t you at least be able to come up with
country-specific regexes for those?

I’m being UK-centric here, so YMMV, but I once worked at a company
which had a postcode (“WC1E 4HR”) that I regularly got “sorry, that
postcode is invalid” messages popped-up at me when I tried to buy
stuff online. That was mostly due to “simple” regexes not accepting a
letter after a number in the district code.