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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Using a Regex Match for specifc characters

R_L
7 - Meteor

Hello,

 

I'm trying to write a condition for a Regex Match.

The string comes in the following format: 12345 AND 123456.

If there is a match for the above, i.e. /d* AND /d*

I want it to generate in another field, the text, "Match".

 

I've tried the following, but no joy:

if REGEX_Match([Field1], "[(\d*\sAND\s\d*)]") then "Match" else "No Match" endif

 

Any help please?

1 REPLY 1
mattreynolds
9 - Comet

Just need to remove the brackets in the Regex: 

 

if REGEX_Match([Field1], "\d*\sAND\s\d*") then "Match" else "No Match" endif

 

Example workflow is attached. Hope this helps!

Labels
Top Solution Authors