Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Extract Number from String

TJ2
7 - Meteor

I have a field [Data] in which I need to extract the number that has 3 decimal places. The delimiter is "-" however, there are multiple delimiters in multiple places. I believe Reg ex can do this, but I need some help. The Output field is the desired outcome.

 

TJ2_0-1616594722447.png

 

4 REPLIES 4
Luke_C
17 - Castor
17 - Castor

@TJ2 

 

I'm not a regex expert, but the below should work for you.

 

(\d+\.\d+)

Luke_C_0-1616595277429.png

 

Emil_Kos
17 - Castor
17 - Castor

Hi @TJ2,


I have prepared a workflow for you:

Emil_Kos_0-1616595335829.png

 

The output:

Emil_Kos_1-1616595349720.png

 

 

TJ2
7 - Meteor

Thanks!

AdamR_AYX
Alteryx Alumni (Retired)

Hi @TJ2 

 

I'll offer a non-regex solution as an alternative

AdamR_0-1616595887164.png

Workflow attached

 

Adam Riley
https://www.linkedin.com/in/adriley/
Labels
Top Solution Authors