My attempt at a RegEx solution

Fixes #19
needs further indentation