[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Ungready Flag on Regex
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Oct 2020 14:26:16 -0000
On Thu, 2020-10-08 at 14:23 +0000, Christophe Marchand
cmarchand@xxxxxxxxxx wrote:
> 
> B B B  <xsl:analyze-string select="$s" regex="\*\*[^*]*\*\*">

You want [^*]*?

the non-greedy version of *

Liam

-- 
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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member