Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Put Space between lower and upper case letters

saachitalwar
8 - Asteroid

Hi,

 

I have a few test cases where the strings need to have some spaces included:

 

input - desired output

 

1. ABCdefOneTwoThree - ABCdef One Two Three

2. ABCdefU.S.TwoThree - ABCdef U.S. Two Three

3. ABCdef100%TwoThree - ABCdef 100% Two Three

 

the formula - Regex_replace([Field1],'([a-z])([A-Z])','$1 $2',0) - worked perfectly for the first test case but the rest are coming out like ABCdef U.S.Two Three with the . and the next capital letter joined.

 

How can the rest of the test cases be divided into the desired strings

 

4 REPLIES 4
alexnajm
17 - Castor
17 - Castor

I think this is already being addressed on the other thread you started yesterday: Re: Divide String ABCadMunicipalMarketBudget to AB... - Page 2 - Alteryx Community

 

Please continue there so we don't flood up the discussion board. Thank you!

saachitalwar
8 - Asteroid

no replies to the rest of the test cases 

alexnajm
17 - Castor
17 - Castor

Still, it is better to continue on one thread than to start a new one (unless it is a completely different question). It looks like there's a reply now for example.

Raj
16 - Nebula

@saachitalwar 
try this 
hope this helps.

please mark done if the issue is solved.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels