[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Analyze-string Regex to Match Content within Curly

Subject: Re: Analyze-string Regex to Match Content within Curly Braces
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Nov 2020 20:29:35 -0000
Re:  Analyze-string Regex to Match Content within Curly
On Tue, 2020-11-17 at 13:08 +0000, Martin Honnen martin.honnen@xxxxxx
wrote:
> 
> On 17.11.2020 13:43, Don Smith dsmith_lockesmith@xxxxxxxxxx wrote:
> > <text>In the be{opthyphen}gin{opthyphen}ning</text>
> 
> 
> The curly braces need to be escaped as \{ and \}

Or you can use [{] and [}], which i find easier because \{....\} are 
special instead of { } in some regular expression languages. This works
for ( ) too, since \(...\) is a capturing group in sed, vi, etc., so
[(] and [)] work pretty much everywhere.

You still have to write [{{] and [}}] unless you use a variable; i'd
recommend using a variable, though, so you can give it a name that's in
the problem domain, such as "superscript-regex".

As to Mike Kay's typographical point, one can to some extent use the
maths fonts, but it's tedious and often ugly, depending on the browser:
https://www.fromoldbooks.org/Heraldry-Kent/transcription/chap1sec2.html
I'd like to see presentation mathml integrated through CSS into Web
browsers, so that one could simply declare an element to have a left
brace, or fence as mathematicians call it.

-- 
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.