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
13 - Pulsar

try this

 

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

 

gawa
15 - Aurora
15 - Aurora

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