Subject: [xsl] Re: Split camel-case strings into words? From: "Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 10 May 2023 19:17:22 -0000 |
How about: tokenize('MicrosoftExchangeOnline', '(?<=[a-z])(?=[A-Z])', ';j') (lookbehind for a lowercase letter, lookahead for uppercase letter) From: Eliot Kimber eliot.kimber@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, May 10, 2023 3:12 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Split camel-case strings into words? In an XQuery context, what is the easiest way to split a camel-case string into words? So given "MicrosoftExchangeOnline" return ("Microsoft", "Exchange", "Online"). I was going to ask ChatGPT but the servers are apparently overloaded with people asking trivial questions. Thanks, E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<https://urldefense.com/v3/__https:/www.servicenow.com__;!!A4F2 R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QHTGtMBJUEsrz XwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJE5r-JkW$> LinkedIn<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicen ow__;!!A4F2R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QH TGtMBJUEsrzXwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJHRui6Gk$> | Twitter<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!A4F2R9G _pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QHTGtMBJUEsrzXwZ Yj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJA32KjPu$> | YouTube<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc __;!!A4F2R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QHTG tMBJUEsrzXwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJLsw-Pyz$> | Facebook<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!A 4F2R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QHTGtMBJUE srzXwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJFoUpESf$> XSL-List info and archive<https://urldefense.com/v3/__http:/www.mulberrytech.com/xsl/xsl-list__ ;!!A4F2R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdXuyzpvtnpXn3vC5QHTGtM BJUEsrzXwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJBGbPu7w$> EasyUnsubscribe<https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsu b/xsl-list/3380743__;!!A4F2R9G_pg!fzoPEm495CdxLsF_ywGmsUJCYOlL8yFSpKc5wgMfxdX uyzpvtnpXn3vC5QHTGtMBJUEsrzXwZYj8WATyKPXC9BTOeO7N-NXBiiY2_MjFe9SEJJgcuCln$> (by email<>)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Split camel-case strings into, Eliot Kimber eliot.k | Thread | Re: [xsl] Split camel-case strings , Martin Honnen martin |
[xsl] Split camel-case strings into, Eliot Kimber eliot.k | Date | Re: [xsl] Split camel-case strings , Martin Honnen martin |
Month |