Alteryx Designer Desktop Discussions

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

Data Extraction from a String column

Pranab_C
8 - Asteroid

Hello Alteryx Experts,

 

I need help in extracting values from a column which has text and number, I need to extract 100,893 and 473461 from the following two lines.

 

Total tax $ 100,893

Wages , salaries , tips, etc. Attach Form(s) W-2 1 473,461.

3 REPLIES 3
gawa
15 - Aurora
15 - Aurora

@Pranab_C 

Simple Regex tool can help. Regex here is (\d+,\d+|\d{2,3})

It matches "two or three digits number" OR "more than 4 digits with comma separator for thousands".

 

Try this as first attempt to know this will do for the rest of your data.

image.png

Pranab_C
8 - Asteroid

Wow, thank you so much that worked like a charm.

Pranab_C
8 - Asteroid

Just a follow-up a question, however the Regex fails in these situations.

 

Labels