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

Reg Ex to extract specific sequence of digits/letters

arianner
6 - Meteoroid

Hi, 

 

I have a chunk of data in a column and I need to parse out a specific sequence which is a combo of 2, sometimes 3 letters, followed by 2 numbers and then 2023

 

Ex:

BRB092023

GL042023

 

using this "\b(u\u\d\d\d2023)\b" for the regular expression gets me to "null" and the only way I can extract any data is I have only "(2023)" in the expression box. 

 

How can I pull out the entire segment of the examples listed above? (I have a feeling I'll need 2 RegEx tools, 1 for the 3 letter start and 1 for the 2 letter start)

 

thank you!

4 REPLIES 4
Watermark
12 - Quasar
12 - Quasar

Do you have an actual set of data?   Maybe 20-25 records?   You seem to have provided the extract? Like to know what other data may surround it?

Raj
16 - Nebula

Share sample data

Yoshiro_Fujimori
15 - Aurora
15 - Aurora

Hi @arianner ,

Is this what you want to do?

 

Input

Yoshiro_Fujimori_0-1679637254983.png

Output

Yoshiro_Fujimori_1-1679637273825.png

RegEx configuration

Yoshiro_Fujimori_2-1679637292532.png

 

arianner
6 - Meteoroid

Yes! thank you so much!

Labels
Top Solution Authors