Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Get numbers based on specific text

SagarGite
7 - Meteor

Hi,

 

I have list of key words(hundreds of) based I would like to extract numbers pre associated with them.

 

PresentationExpected OutPut
ARIPIPRAZOLE 30MG TABLETS (CRESCENT PHARMA LTD) 28 TABLET 2 X 14 TABLETS28
AROVI 100MG/1ML SOLUTION FOR INJECTION PRE-FILLED SYRINGES (ROVI BIOTECH LTD) 10 PRE-FILLED DISPOSABLE INJECTION 5 X 2 PRE-FILLED SYRINGES10
ARSENIC 10MG/10ML CONCENTRATE FOR SOLUTION FOR INFUSION VIALS (FLEXIPHARM AUSTRADING LTD) 10 VIAL10
ARTESUNATE 50MG TABLETS (IMPORTED (CHINA)) 12 TABLET12
ASACOL 250MG SUPPOSITORIES (ALLERGAN LTD) 20 SUPPOSITORY20
ATOMOXETINE 100MG CAPSULES (NEURAXPHARM ARZNEIMITTAL GMBH) 28 CAPSULE 4 X 7 CAPSULES28

 

 

Key words
TABLET
PRE-FILLED DISPOSABLE INJECTION 
VIAL
TABLET
SUPPOSITORY

CAPSULE

 

Can someone help me to get numbers by using regex with big key word list

2 REPLIES 2

Hello @SagarGite 

 

Please check this WF out. Hope it helps!

Danish409
7 - Meteor

I totally agree with @christine_assaad.

Alternatively, we can also use text to column and formula tool to get the desired output. But of course Regex has its own advantages.

Please check out the alternative way to solve.

Spoiler
Screen-12-07-2020_002402.png
Labels
Top Solution Authors