Thanks, that sounds promising - although I'm about to go on holiday so it
will be a while before I can look at it. :)

On 11/2/07, Claude Schneegans <[EMAIL PROTECTED]> wrote:
>
> >>Getting the initial tag is easy enough ( <prefix:([a-z_]+)[^>]*[^/]>
> ), but I can't think how to check for a lack of closing tag.
>
> As Ben says, it's pretty hard to find absence of something using Regexp.
> Have a look at CF_REextract:
> http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
> You can easily extract all strings between <prefix... and </prefix  or
> <prefix...or end of text
>
> For instance, try
> http://www.contentbox.com/claude/customtags/REextract/testingREextract.cfm
> - enter <prefix:([a-z_]+)[^>]*[^/]> in RE1,
> - enter </prefix>|<prefix:([a-z_]+)[^>]*[^/]>|$ in RE2
> - enter this in Sample Text:
>
> This is <prefix:tag...> a test to check
> if </prefix> are missing <prefix:tag...> somewhere <prefix:tag...>  in
> the text
> <prefix:tag...>  in the text
>
> Now, if any occurrence does not have </prefix> in string3, it is an
> unclosed <prefix.
>
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1080
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to