Re: [xsl] Split camel-case strings into words?

Subject: Re: [xsl] Split camel-case strings into words?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 May 2023 19:17:26 -0000
On 5/10/2023 9:12 PM, Eliot Kimber eliot.kimber@xxxxxxxxxxxxxx wrote:
>
> In an XQuery context, what is the easiest way to split a camel-case
> string into words?
>
> So given bMicrosoftExchangeOnlineb return (bMicrosoftb,
bExchangeb,
> bOnlineb).
>
> I was going to ask ChatGPT but the servers are apparently overloaded
> with people asking trivial questions.
>
Asking the XSL list instead of ChatGPT about XQuery?

Well, I think

analyze-string('MicrosoftExchangeOnline', '\p{Lu}\p{Ll}*')/*:match/string()

might do it.

Current Thread