WIP implementing a regex matcher