[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Split camel-case strings into words?

Subject: 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
 Re: Split camel-case strings into words?
How about:

tokenize('MicrosoftExchangeOnline', '(?&lt;=[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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.