My attempt at a RegEx solution

Fixes #19
same as previous