Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Regex match in filter tool

jmc
5 - Atom

Hi, I'm new to regex. I'm looking to isolate any string with more than one letter C.

 

CCMM matched

CMCMCM matched

CM not matched

CCM matched

CMM not matched

CMMC matched

CMC matched

 

I tried REGEX_Match([Pairs],"/[c]{2}/")=-1 but didn't work. I also check with regex 101 looks like the repetition function only picked up all "c" if they're one after another (e.g. ccmm) not if they're between other letters (e.g. CMCM)

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

@jmc ,

 

 one way is:

 

regex_countmatches([field],"c") > 1

 

 

 cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
jmc
5 - Atom

exactly what I need. Thanks Mark! @MarqueeCrew

MarqueeCrew
20 - Arcturus
20 - Arcturus

You're welcome 😇 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors