in reply to Re^2: Comparing pattern
in thread Comparing pattern

Graff, you're an awesome guy!! The final version of the script working exactly in the manner I want except a little problem.
I will elaborate it.

I have this file to scan: example.txt (used by scammers/abusers)
http://uploading.com/files/get/cm3364a5/
This pattern
page.{0,10}html.*?page.{0,10}html.*?</changefreq
working because example.txt contain all elements of pattern.

If I change pattern to
page.{0,10}html.*?page.{0,10}html.*?kkk
(example.txt doesn't containt kkk), script enters a loop and CPU usage become very high.
I think it's related to excesive number of the same pattern, because reducing example.txt to only few lines solves the problem.
Any idea how to solve this bug?