optimized dataFlowFromRegex to be about twice as fast.