In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

Alteryx Designer Desktop Discussions

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

How to extract number from text cell

SahadhKuruniyan
8 - Asteroid

I have to extract code from a cell. The text is not even so can't use text to filter. Is there any way we can extract the number

3 REPLIES 3
apathetichell
19 - Altair

regex_replace([field[,"^(.*)_(\d+-\d+)_(.*)$","$2") is what I would start with...

FinnCharlton
13 - Pulsar

@SahadhKuruniyan You want the text inbetween the underscores? Add a Regex tool, set it to parse mode and use the regular expression:

.+?_(\d+-\d)_.+

Hope this helps! 

SahadhKuruniyan
8 - Asteroid

Thanks alot. However I bit confused here, Can you tell me what would be formula if I have to extract code between ()..eg (12423-4) and between(space....eg (2323-5 

Labels
Top Solution Authors