c7b31b0242
This fixes a problem introduced in c7b31b0242. The changes by @tobibeer inadvertently made the regular expression evaluation significantly more expensive because of lookahead. The is less elegant but reverts the performance problem.