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

"Graydon [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
On Wed, Nov 18, 2020 at 09:50:31PM -0000, Wendell Piez [email protected] scripsit:
> So maybe today a solution is to pad with extra {''} around your string
> literal (escaping ')?
> 
> <xsl:analyze-string regex="{ '\{.*?\}' }"> ...
> 
> With trepidation (forgive me if this has already been suggested),

Would that syntax not be rather easily confused with the braces of AVT
evaluation?

(Not that I haven't want the braces of XQuery evaluation in places like
match attributes.)

-- 
Graydon Saunders  | [email protected]
Þæs oferéode, ðisses swá mæg.
-- Deor  ("That passed, so may this.")
--~----------------------------------------------------------------
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.