xsl-list
[Top] [All Lists]

Re: [xsl] Ungready Flag on Regex

2020-10-08 09:26:21
On Thu, 2020-10-08 at 14:23 +0000, Christophe Marchand
cmarchand(_at_)oxiane(_dot_)com wrote:

    <xsl:analyze-string select="$s" regex="\*\*[^*]*\*\*">

You want [^*]*?

the non-greedy version of *

Liam

-- 
Liam Quin, 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:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
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>