Free Trial

Alteryx Designer Desktop Discussions

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

RegEx formula to find a specific pattern

soncoku
9 - Comet

Hey all.

I have a column of data from which I want to pull out only this pattern:

 

293847463_323847565_1

 

So 9numbers_9numbers_1number

 

but I'm not that fluent in regex

any help would be appreciated 🙂

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @soncoku 

 

You can use Regex tokenize mood

 

 

\d{9}_\d{9}_\d

 

Should work 

 

Config

atcodedog05_0-1605024043931.png

 

Here is the workflow

Amarendra
10 - Fireball

Hi @soncoku

 

@atcodedog05Solution works great!! To further help you, look at the lesson notes section in this article - https://regexone.com/ I hope this makes RegEx easy and fun for you!

MarqueeCrew
20 - Arcturus
20 - Arcturus

Answer should be:

 

Regex_Match([your data],"\d{9}_\d{9}_\d")

 

true or false as a Boolean variable in your formula or filter. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @soncoku 

 

Cheers and Happy Analyzing 😀

soncoku
9 - Comet

Wow. Thank you.

Much appreciated 🙂

Labels
Top Solution Authors