Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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