[xsl] [Solution] Need an XPath expression which returns all xs:pattern elements containing a regex that permits an unbounded number of characters

Subject: [xsl] [Solution] Need an XPath expression which returns all xs:pattern elements containing a regex that permits an unbounded number of characters
From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Apr 2024 14:59:38 -0000
Hi Folks,

Here is how to find all xs:pattern elements containing a regex that permits an
unbounded number of characters:

//xs:pattern[matches(@value, "regex")]

Replace "regex" with this:

^(,[^\}]|\\.|\[(\\.|[^\]\\])*\]|[^*+,\[\\])*([*+]|,\}<file://.|[%5e/%5d/%5d)*
/%5d|%5b%5e*+,/%5b/%5d)*(%5b*+%5d|,/%7d>)

Thank you, Michael Sperberg-McQueen!

/Roger

Current Thread