Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Regex Tool question

Highlighted
5 - Atom

Hello Alteryx User,

 

I would like to parse out the number 50 from "P14 - XFR CLAIM FROM PATIENT TYPE 50" or parse out the number 40 from "D70 - XFR CLAIM FROM PATIENT TYPE 40"  what is the expression for that?

 

thank you 

Highlighted
16 - Nebula
16 - Nebula

@PengJia  A formula like this seems to work on your test data (assuming you want digits at the end of the string)

REGEX_Replace([Field1],".*?(\d+)$","$1")
Highlighted
5 - Atom

Thank you very much, it work perfectly.

 

 

Labels