Alteryx Designer Desktop Discussions

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

Reg Ex Formula to extract numbers

RCOOK
6 - Meteoroid

I would like the regex expression to remove numbers from text and create a new column with the store number. Below are a few examples.

 

FHFAberdeen248

FHFAdamsville205

FHFAdel124

FHFAiken61

FHFSoperton1

 

6 REPLIES 6
DataNath
17 - Castor

Hey @RCOOK are the store names always in this format? If so, could use this:

 

(\D+)(\d+)

 

DataNath_0-1658415408573.png

Robin_McIntosh
11 - Bolide

Robin_McIntosh_0-1658415491932.png

 

Matthew
11 - Bolide

REGEX_Replace([Field1], '(\d+?)$|.*?', '$1')

 

Matthew_1-1658415904562.png

 

 

 

 

RCOOK
6 - Meteoroid

Thanks so much!! Big Help

RCOOK
6 - Meteoroid

Excellent thanks so much Dan!

RCOOK
6 - Meteoroid

Thanks Matthew!

Labels