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

Reply via email to