We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

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
18 - Pollux
18 - Pollux

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
18 - Pollux
18 - Pollux

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.

Labels
Top Solution Authors