Create simple parser for regular expressions

This makes it a bit more bearable to input regular expression into
enumerator.