Yeah that's part of the problem.. the xxxx can contain HTML code, which may contain regular comments, however, xxxx will never contain , those are only used as braces.. and to mirod, another thing is that there could be any number of these tags before/after the tag we're intending to grab..