ParentFull threadqntm·This was actually going to be my solution as well. Regex engines are optimised for exactly this sort of problem, why duplicate the work manually?View on HN