My attempt at a RegEx solution

Fixes #19