Quote:
Originally Posted by redwhiteandblue
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?