in reply to Re^5: Regex infinite loop?
in thread Regex infinite loop?

You are correct. The code is not, in fact, hanging -- it's just taking a very long time to execute. I "discovered" this when I unknowingly left the program running over night and came back the next morning--it had executed all the way through. The thing that confuses me, though, is that for most pages, it does all of the matching in a matter of a few seconds. For the colts and the jets however, it takes something like 2 HOURS. Intuitively, it seems like there must be something that is different about their pages, but I'm not sure what it is.

Replies are listed 'Best First'.
Re^7: Regex infinite loop?
by JavaFan (Canon) on Oct 17, 2008 at 14:49 UTC
    Of course there's something different - their content. And that makes all the difference. (After all, if there wasn't a difference, you wouldn't do this exercise with different pages, would you?)