Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex Replace

EN6924
10 - Fireball

Hello All,

 

From my Input the Output should be like (Using Regex) -

 

InputOutput
1097daysor3years3 Years or, 1097 Days
365Days365 Days
7days7 Days
4days4 Days

 

I tried to combine a Regex function with conditional operator, but it's not working. 

 

EN6924_0-1643700282225.png

 

 

Please help.

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @EN6924 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643700658944.png

 

Hope this helps : )

 

EN6924
10 - Fireball

In the output it should be like - 7 Days or 2 Years

 

Need first letter of the string in uppercase.

atcodedog05
22 - Nova
22 - Nova

Hi @EN6924 

 

Please find the updated workflow.

 

atcodedog05_0-1643701544696.png

 

Hope this helps : )

 

EN6924
10 - Fireball

That's perfect. Thank you very much. 😊

 

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @EN6924 

Cheers and have a nice day!

Labels
Top Solution Authors