In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors