Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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
20 - Arcturus

@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