Improve createCodeFinder efficiency and performance a bit.
Use a more efficient (and more robust) way to avoid detecting escaped quotes and slashes.