Alteryx Designer Desktop Discussions

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

Regex 3 or more characters

hellyars
13 - Pulsar

Hi,

I want to extract acronyms that have 3 or more uppercase characters.

 

I tried

 

([A-Z]{3,0})  Correction....I actually tried

 

([A-Z]{3,0})

 ...and it did not work (it does on Regex101)

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hey @hellyars,

I think you are looking for:

([A-Z]{3,})

Got this from regex101: build, test, and debug regex:

IraWatt_0-1658262735783.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

\u{3,}  but Alteryx default is case-insensitive

REGEX_Match(String,pattern,icase)  where icase is 0 for case sensitivity

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
PhilipMannering
16 - Nebula
16 - Nebula

What @MarqueeCrew said. So easy to forget about unchecking "case-insensitive" box in the Regex Tool or flag icase as 0 in the Formula Tool.

hellyars
13 - Pulsar

@IraWatt  Sorry, I cut and pasted the wrong version.  I did try exactly that ([A-Z]{3,}) and it did not work

hellyars
13 - Pulsar

@PhilipMannering   LOL That was it.  ([A-Z]{3,0}) does work so long as you uncheck the case insensitive box. 

 

 

IraWatt
17 - Castor
17 - Castor

@hellyars could you provide some sample data It seems to work for me

Animation9.gif

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels