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

Parse string on basis of zeroes after underscore - RegEx

shobhit_gupta
7 - Meteor

Hi All,

 

I have this ask. I have a string which has 2 underscores in different positions. I want to write a regular expression which checks if two consecutive characters immediately after the 1st underscore is '00' and four characters immediately after the 2nd underscore is '0000'.

Any inputs would be much appreciated!

3 REPLIES 3
aatalai
15 - Aurora

try this

 

.*_00.*_.[4]0000.*

 

gawa
16 - Nebula
16 - Nebula

hi @shobhit_gupta 

You can try the below regex with Regex_Match function.

.*_0{2}.*_0{4}.*

shobhit_gupta
7 - Meteor

Thanks @gawa ! This helps!

Labels
Top Solution Authors