Beginning of a regex parser