Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Removing characters from a String and replacing with something else

EN6924
10 - Fireball

Hello All,

 

I have a sample data, wanted to convert like below format -

 

InputOutput
00 Hours 35 Minutes 59 Seconds35 Minutes 59 Seconds
00 Hours 06 Minutes 20 Seconds6 Minutes 20 Seconds
00 Hours 45 Minutes 52 Seconds45 Minutes 52 Seconds
01 Hours 16 Minutes 04 Seconds1 Hour 16 Minutes 4 Seconds
00 Hours 27 Minutes 38 Seconds27 Minutes 38 Seconds
02 Hours 23 Minutes 17 Seconds2 Hours 23 Minutes 17 Seconds
00 Hours 58 Minutes 23 Seconds58 Minutes 23 Seconds
00 Hours 10 Minutes 52 Seconds10 Minutes 52 Seconds
00 Hours 07 Minutes 53 Seconds7 Minutes 53 Seconds
03 Hours 36 Minutes 55 Seconds3 Hours 36 Minutes 55 Seconds
03 Hours 10 Minutes 30 Seconds3 Hours 10 Minutes 30 Seconds
01 Hours 40 Minutes 47 Seconds1 Hour 40 Minutes 47 Seconds
15 Hours 25 Minutes 55 Seconds15 Hours 25 Minutes 55 Seconds
03 Hours 08 Minutes 48 Seconds3 Hours 8 Minutes 48 Seconds
00 Hours 00 Minutes 00 SecondsBackup may be running or has been failed.
10 Hours 00 Minutes 00 Seconds10 Hours
00 Hours 00 Minutes 07 Seconds7 Seconds

 

I have already done it using Regex and Formula tool. 

 

EN6924_0-1644140786701.png

 

Need help to create the output in more short way using Regex.

 

Thanks. 😊

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @EN6924 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1644141464649.png

 

Hope this helps : )

 

EN6924
10 - Fireball

Great.. Thank you 😊

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @EN6924 

Cheers and have a nice day!

Labels