Alteryx Designer Desktop Discussions

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

Regex - remove values from field

pberthov
5 - Atom

Hello, 

 

I need to remove /1 from the field 123456789/1.

 

I thought using Regex, but not sure what to put in Regular Expression.

 

pberthov_0-1635764629874.png

 

Can you please help?

 

Thanks,

Petra

 

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

@pberthov ,

 

 

Please don't use RegEx.  Instead use REPLACE:

 

Replace([Field], "/1", '')

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
HomesickSurfer
12 - Quasar

Hi @pberthov 

 

Assuming that the value after the / may not always be a 1, try this:

 

Replace([Field1], Right([Field1], 2), "")

 

Modify [Field1] to your field name that contains the values.

Labels