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.
SOLVED

Help! Regex Tokenize multiple expression

Ultralightbeam
8 - Asteroid

GY12_Word_31Dec20_Word2_d1.10_G12_1234

 

I have 7 to 9 delimited(_) string and I want to determine if each delimit is in proper format/appropriate value

I am using regex tokenize but for some reason it doesn't seem to work

 

Current ValueHow to check if it's correct
GY20First two letters should be GY followed by two digit number 18 to current last two digit of year
WordAny word must not contain special characters excluding period and underscore.
31Dec20\d{2}\w+\d{2,4}
Word2Contains word 'Licensing' or any 3 character length
d1.10left must be lowercase of v and second number must be a period.
G12G\d{1,2}
1234\d{3,4}

 

is it possible for this to be written in one regex expression or should do split to columns then do each regex expression?

13 REPLIES 13
Ultralightbeam
8 - Asteroid

 

@Tyro_abc it's working

For Regexout2 it only gets words is it possible if we can also add special characters and numbers since its really a company name which may include parentheesis. Thank you

 

Tyro_abc
11 - Bolide

At last some progress.

 

How about this? I added few characters like parenthesis, dot & etc., and seems to be working, please check once.

arundhuti726_0-1611816706819.png

 

Regards

Arundhuti

Ultralightbeam
8 - Asteroid

thank you!! i have added dash and it's working.

Is it possible to use | on regex if pattern may be consist of the following

on d1.10

in some instance it has d.1.10

some has no d but  1.10

doesnt really matter if first letter is in uppercase or lowercase

is it possible to capture all of that format in one expression under regex5out? Thank you very much

Tyro_abc
11 - Bolide

I was able to make that character optional and it would accept both upper and lower case.

 

(GY[1-2][\d])_([\w\(\)&\.\s]+)_(\d{2}[a-zA-Z]{3}\d{2,4})_(Licensing|[A-Z]{3})_([[:alpha:]]?\d\.\s?\d{2})_(G\d{1,2})_(\d{3,4})

 

arundhuti726_0-1611817994418.png

 

Labels
Top Solution Authors