Fixes #5 (rewrite regular expressions)

Not really a complete rewrite because well... that does not work. :D
But they're now a bit different and should be a bit faster and smaller