>- see footer for list info -<
My idea as well Michael.

Use regex to remove all non-tag code, use regex to remove all
whitespace/linebreaks and lastly use regex to remove all <start><end>
tag combos. Any file with more than 0 bytes will have errors after this.
Sounds like a lot but it's the same code base to do it and just changes
to regex expression.

It won't fix it, but you'll reduce your check base by a lot. If it's
still a lot of files then spend time on developing more complex
solution, otherwise manual fix. No reason to spend weeks developing a
one-off solution.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Traher
Sent: 02 November 2007 21:06
To: Coldfusion Development
Subject: Re: [CF-Dev] Finding unclosed XML tags?

>- see footer for list info -<
could you use your regex to strip the files of all the intervening code
- so you end up with a much smaller file with just the tags you are
checking it might be easy then to spot any missing close tags manually.

On Nov 2, 2007 12:05 PM, Peter Boughton <[EMAIL PROTECTED]> wrote:

> >- 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
> -<
>



--
Mike T
Blog http://www.socialpoints.com/
_______________________________________________

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 -<

Reply via email to