Free Trial

Alteryx Designer Desktop Discussions

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

Formatting Formula or Regex

Christion5
5 - Atom

Trying to figure out a formula or regex that will add a space to an ID number before a certain letter/ letter pattern.

 

Example: 1234AABC -> 1234 AABC

                      1234567AABC -> 1234567 AABC

 

(Where a space is put before every "AA")

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Christion5 

 

The normal replace function like below should work.

 

Replace([Field],"AA"," AA")

 

Replace "AA" to " AA" with space in before. Regex method would be just complicating it.

 

Hope this helps : )

Christina_H
14 - Magnetar

With the field named ID you can use:

Replace([ID], "AA", " AA")

Christion5
5 - Atom

Thanks! I forgot all about the replace function. 

Labels
Top Solution Authors