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.
解決済み

Regex_Parse

Tonia_Dykes
メテオロイド

Hello - I am trying to extract the numbers following "LOC". The data is not consistent so I am trying to figure out the best way to do this. I have attached some data and the expected outcome. There has to be a better way LOL 

3件の返信3
Yoshiro_Fujimori
16 - Nebula
16 - Nebula

Hi @Tonia_Dykes ,

 

I hope this works for you.

 

Workflow

Yoshiro_Fujimori_0-1687326572367.png

 

Formula tool

Output = ToNumber(REGEX_Replace([Data], ".*LOC\s?(\d+).*", "$1"))

 

nagakavyasri
クエーサー

Another way:

 

Screenshot 2023-06-23 142042.png

binu_acs
ポラリス

@Tonia_Dykes using regex tokenize

 

Screenshot 2023-06-23 200603.png

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