Subject: Re: [xsl] Replace the portion of text that matches pattern: XPath versus SNOBOL From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 24 Mar 2025 11:21:25 -0000 |
Inventiveness requires constraint. Cheers, Wendell On Sun, Mar 23, 2025 at 7:57b/AM David Carlisle d.p.carlisle@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > On Sun, 23 Mar 2025 at 11:16, Michael Kay michaelkay90@xxxxxxxxx < > xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > >> > >> > >> > I'd probably have used >> > >> > >> > replace($WORD, '^([^A]*)A', '$1E') >> > >> >> But that relies on doing a negative match, which is tricky to achieve it >> it's more than one character you're trying to replace. >> > > well true, which is why (most likely) *? got added to most regex > flavours, but still I tend to reach for [^ before thinking of *? > just because... > > David > > >> Michael Kay >> Saxonica >> >> >> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/174322> (by > email <>) > -- ...Wendell Piez... ...wendell -at- nist -dot- gov... ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org... ...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Replace the portion of te, David Carlisle d.p.c | Thread | [xsl] [ANN] Version 27.1 of the Oxy, Octavian Nadolu octa |
Re: [xsl] Replace the portion of te, David Carlisle d.p.c | Date | [xsl] [ANN] Version 27.1 of the Oxy, Octavian Nadolu octa |
Month |