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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Regex Parse Help

jenner85
8 - Asteroid

Hi - 

How do I parse out 

 

Q3_2021_Leads

 

to make it 

 

Q3 2021

 

Thanks!

2 REPLIES 2
phottovy
13 - Pulsar
13 - Pulsar

Hi @jenner85 

 

I was able to use the RegEx tool with the replace option to accomplish this. Here is my expression:

 

(Q\d)_(\d{4})

 

Q\d = find the letter Q followed by a single digit

\d{4} = find 4 digits

 

By putting those two in parentheses, I can keep those original values by using $1 and $2 in the "Replacement Text" section.

 

phottovy_0-1628705604295.png

 

JagdeeshN
12 - Quasar
12 - Quasar

Hi @jenner85 ,

 

Is regex a requirement to do this?

 

Have you looked into using the text to columns tool?

 

Please find attached a sample workflow to do that.

 

Hope this helps.

 

Best,

Jagdeesh

Labels
Top Solution Authors