On Tue, 2025-05-13 at 20:09 +0000, dvint@xxxxxxxxx wrote:
>
> I like this one
>
> replace($input, '[^a-z0-9]+', '-', 'i')
>
>
> what does that 'i' and the end do? I thought replace only had 3
> parameters.
Therebs a version of replace() that takes a $flags argument. The i
means case insensitive.
I think the quote question was answered separately.
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
|