Alex Papadimoulis

Founder, The Daily WTF

Jul 2016

Classic WTF: RegExp from Down Under

by in CodeSOD on
This particularly bad example of regular expressions and client side validation was originally published in 2009. I thought Australia was supposed to be upside down, not bass ackwards. - Remy

"The company I work for sells vacation packages for Australia," writes Nathan, "and for whatever reason, they're marketed under different two different brands — and — depending on whether you live Down Under or somewhere else in the world."

Nathan continues, "one of the requirements for the international website ( is to disallow people from within Australia and New Zealand to make bookings. But the way this is done from the front end... well, it's a real gem."