Alteryx Designer Desktop Discussions

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

REGEX Replace

ryanmor24
6 - Meteoroid

So I have ID numbers that need to be fixed. They consist of 2 formats: SV0N00555. and SV0I0555. I need to take the 

"N" and "I" out of these. How can I best do that?

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @ryanmor24 

 

You can do this with a simple replace formula, assuming N and I will never appear in another part of the field.

 

replace(replace([Field],"N",''),'I','')

 

 

Elias_Nordlinder
11 - Bolide

Hello @ryanmor24 ,

 

I think something like this should work, I have attached a workflow as well.

It takes out the first character (S or I) after the first number (0).

- \d{1}([A-Z]{1})

 

* \d{1} -> One number

* ([A-Z]{1}) -> Thing to replace, one letter after one number

 

Elias_Nordlinder_3-1626902969953.png

 

 

 

Elias_Nordlinder_2-1626902960487.png

 

Let me know if you have any more questions 🙂

 

 

Labels
Top Solution Authors