> function GetCommentsWrapper(txt){
> if(REFindNoCase("<(newLog|legacyLog)\b[^>]*>",txt))
> return GetCommentsNew(txt);
> else return GetComments(txt);
> }
>
> I want to display everything between the opening <newLog> or
> <legacyLog> tag and the closing </newLog> or </legacyLog>
> tag. The above function works, but I'm trying to re-write the
> code in ASP. I tried this but it does not work
Is this an XML document that you're working with? If so, why not just use an
XML parser to get the contents of the node that you want? The MS XML parser,
which is what you'd use from ASP, has some nifty extensions that let you get
all the text within a node even if that node has child nodes.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta
http://www.houseoffusion.com/banners/view.cfm?bannerid=40
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182610
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54