Revert "TASK: Adjust replacement use, adjust prefix handling"
Revert "TASK: Adjust replacement use, adjust prefix handling"

This reverts commit 91295546c20222ba2e204e7b07e2051a592e3412.

The regex solution is slower by a factor of 2-5 and also less readable.

neos/flow,neos/flow,neos/flow,neos/flow