Re: Analyze-string Regex to Match Content within Curly Braces

"Dave Pawson [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
On Tue, 17 Nov 2020 at 13:57, Michael Kay [email protected]
<[email protected]> wrote:
> <xsl:param name="x" select="}O'Reilly"/>
>
> indicates that the default value is the string "O'Reilly"
>
> and in an AVT
>
> regex="}[a-z]{4}"
>
> indicates that the regex is [a-z]{4}
>
> This relies on the fact that neither an AVT nor an expression can legally begin with an undoubled "}", nor is it ever likely to. And you can think of "}" as meaning "exit expression mode, here is plain text".
>
> Nice idea, or just too quirky?

Weird Mike - looks plain ugly...
Logical, but weird <grin/>

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.