Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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