Did you look at the regex? That's pretty much a given.
The start of some sanity?
In reply to Re^4: Help with speeding up regex by BrowserUk in thread Help with speeding up regex by eversuhoshin