View Single Post
Old 11-24-2009, 11:04 AM  
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by cyco_cc View Post
Edit: When is your regex breaking? The /<!--(.|\s)*?-->/ one?
Don't know, on most pages it happily strips out comments but on some it just returns null and I haven't figured out what the difference is with those pages yet.

EDIT just spotted this comment in the PHP user manual:

"As a pertinent note, there's an issue with this function where parsing any string longer than 94326 characters long will silently return null. So be careful where you use it at. "

Could be it.

Last edited by redwhiteandblue; 11-24-2009 at 11:08 AM..
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote