In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

Alteryx Designer Desktop Discussions

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

[REGEX] I need to extract the expression "d-d-dd"

BautistaC888
8 - Asteroid

Hello,

I need help with regular expression to extract data (d-d-dd) from a field:

I have expressions like: "443-1166510-0-34 - FIDISO JE PiO"
I need to extract the numbers: "0-0-34" in the middle of the string

Thank you.

4 REPLIES 4
Biswarun
8 - Asteroid

A pattern can be [0-9]{1}-[0-9]{1}-[0-9]{2}

Matthew
11 - Bolide

this should do the trick

 

REGEX_Replace([Field1], '.*(\d-\d-\d{2}).*|.*', '$1')

 

Matthew_0-1662136041890.png

 

binuacs
21 - Polaris

@BautistaC888 One way of doing this with the RegexTokenize 

 

binuacs_0-1662190630063.png

 

Emmanuel_G
13 - Pulsar

Hi @BautistaC888 ,

 

Find attached the way to do that 

Emmanuel_G_0-1662237815775.png

 

Labels
Top Solution Authors