View Single Post
Old 11-24-2009, 10:03 AM  
cyco_cc
Confirmed User
 
cyco_cc's Avatar
 
Join Date: Oct 2008
Posts: 344
Quote:
Originally Posted by redwhiteandblue View Post
Tht's probably what I started with but surely will just catch everything between the first opening comment tag and the last closing one?
No, the '?' part makes it non-greedy so it will match the first closing.

Edit: When is your regex breaking? The /<!--(.|\s)*?-->/ one?

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