We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex: If expression match then "y"

BautistaC888
8 - Asteroid

Hello,

I need to fill a check column  this way:
Ifthe decription match this expression
11 digits - date - 4 digits - 8 digits thes "y".

For example:

BautistaC888_0-1623857669606.png


I wonder if its possible with a REGEX.

Thank you.

1 REPLY 1
mceleavey
17 - Castor
17 - Castor

Hi @BautistaC888 ,

 

I've built this as a Regexmatch function in a formula tool:

 

mceleavey_0-1623858081110.png

 

if REGEX_Match([Description], "\d{11}\s[-]\s\d\d[/]\d\d[/]\d{4}\s[-]\s\d{4}[-]\d{8}")=-1 then "Y" else "N" endif

 

mceleavey_1-1623858111672.png

 

I hope this helps,

 

M.

 

 



Bulien

Labels
Top Solution Authors