Simplify regex, identity matching by defining Match.ismatch