Dear Monk
Thank you very much for your kind assistance and your tweak made it work perfectly but I have this confusion, the scripts that I posted with and without pre-compiled regex takes almost same time to execute but shouldn't the pre-compiled regex run faster because of pre-compilation...
P.S. I haven't used the @words and $text mentioned, I tried with a larger set of @words and a bigger $text instead of mere (have, regex) and a single sentence for $text as mentioned in the script
In reply to Re^2: Problem with pre-compiled regex
by saranrsm
in thread Problem with pre-compiled regex
by saranrsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |