On 12/22/05, Toby Simmons <toby at simmonsconsulting.com> wrote: > + if (preg_match('%^<!--[^>-]+-->$%', $string)) This will not match comments such as this: <!--my-awesome-comment--> Andy