Rewritten

The regexp validation was a terrible idea. But a great learning
experience, I will make a gist with the code.