xsl-list
[Top] [All Lists]

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

2020-11-18 18:15:18
On Wed, Nov 18, 2020 at 09:50:31PM -0000, Wendell Piez 
wapiez(_at_)wendellpiez(_dot_)com 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  | graydonish(_at_)gmail(_dot_)com
Þæ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/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>