I don’t like to admit it but I had some test mode get all…. $doc/i:HTML returned just what it should, $doc//i:HTML returned the extras…. <bangs head on table>
☺ From: <[email protected]> on behalf of Kari Cowan <[email protected]> Reply-To: MarkLogic <[email protected]> Date: Wednesday, March 22, 2017 at 8:12 AM To: MarkLogic <[email protected]> Subject: Re: [MarkLogic Dev General] Using RegEx in xQuery Righto – I’ll look to add such a function – thanks. From: <[email protected]> on behalf of Christopher Hamlin <[email protected]> Reply-To: MarkLogic <[email protected]> Date: Wednesday, March 22, 2017 at 7:48 AM To: MarkLogic <[email protected]> Subject: Re: [MarkLogic Dev General] Using RegEx in xQuery My guess is that it's a big doc and hard to find the HTML tags? Open the doc in an XML editor and search for *:HTML and it may show. Also, those are both {incisive-repository}HTML nodes, even if there is a (surface) difference in prefix/namespace. This is an example of why regex for xml strings can't cope. It's hard to recommend anything (in detail) since I guess I don't undestand the requirements. It's easy to say, though: regex is not good for something like this. You can use xslt or recursive xquery pretty easily in ML.
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
