in reply to Re^2: Very slow regex substitution on Unicode string
in thread Very slow regex substitution on Unicode string

You should get minimal backtracking. At the start of each word in the comment it will backtrack over the space between words.

You should look into building your own up-to-date perl. I've found it to be remarkably easy on both Solaris & Linux boxes, and you get to use the latest & greatest perl for you own work. Just leave the system version where it is, and put your own on the #! line of your programs or put it earlier in your personal PATH.

TJD

  • Comment on Re^3: Very slow regex substitution on Unicode string