Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

remove non numeric characters from the beginning or end of a string (not the middle)

RBF
7 - Meteor

Hi!  

 

Regex question.  How can I remove non numeric characters from the beginning or end of a string (but not from the middle)?

 

e.g. before:

 

65x

2.5

si98

a99a

3-

 

I want the result to be:

65

2.5

98

99

3

 

This is important because I do not want to lose the decimals, e.g. 2.5 should not become 25

11 REPLIES 11
aatalai
15 - Aurora

@alexnajm very true, guess data celanese and then a formula tool with replace([field],"-","") assuming that's the only puncuatuion you would want to get rid of. 

alexnajm
18 - Pollux
18 - Pollux

Agreed @aatalai!

Labels
Top Solution Authors