In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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