general purpose language agnostic parser for unescaped matches