ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

How do I use the regex replace formula to pull out all the numbers in a field?

dlee9
メテオロイド

Hi all,

 

I have a column GL account where all the members are formatted like this: GL_12345_Account Name - Description. How do I use the regex replace to just pull out 12345 into a new column?

 

I thought it would be something like this but I'm not sure what the second variable "pattern" should be : regex_replace([gl account], pattern, "")

2件の返信2
grazitti_sapna
キャスター

Hi @dlee9,

the formula that you are looking for is given below:

 

REGEX_Replace([FIELD_NAME],"[\D]","").

 

 

I hope it solves your issue.

 

 

Sapna Gupta
dlee9
メテオロイド

Perfect, it worked! Thanks!

ラベル
トップのソリューション投稿者