|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Re: Split camel-case strings , Chris Papademetrious | Thread | Re: [xsl] Split camel-case strings , Chris Papademetrious |
| [xsl] Re: Split camel-case strings , Chris Papademetrious | Date | Re: [xsl] Split camel-case strings , Chris Papademetrious |
| Month |