>- see footer for list info -< Doesn't the validator in Dreamweaver, cfeclipse pick upp missing closing tags ?
Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Boughton Sent: 02 November 2007 12:05 To: Coldfusion Development Subject: [CF-Dev] Finding unclosed XML tags? >- see footer for list info -< Hi all, I'm trying to fix some mis-used custom tags that haven't been closed, and would like to avoid manually going through a couple of thousand files to fix it. I know how to solve the problem going forward, but need to ensure existing code is correctly updated. So I decided a regex that will identify any <prefix:tag...> which isn't followed by its own </prefix:tag> would work, but I can't figure it out at the moment. Getting the initial tag is easy enough ( <prefix:([a-z_]+)[^>]*[^/]> ), but I can't think how to check for a lack of closing tag. (especially considering it might be structured <prefix:tag> ... <prefix:tag> ... </prefix:tag> and I'd want the first one highlighted and not the second) However, since this is just for a one-off check/fix any solution is fine, so if anyone has a tool/editor that can do this without getting muddled up by CF tags, that would be fine. Thanks for any suggestions, Peter _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
