Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #207: Parsing Video Game Data

Highlighted
8 - Asteroid

.

Highlighted
8 - Asteroid
Spoiler
JamesBills_0-1587136414335.png



(\d{7})(.*) (\w+) \((\d+)\) CAT:(.*) PUB:(.*) \$(.*)million, \$(.*)million, \$(.*)million, \$(.*)million, \$(.*)million

Highlighted
8 - Asteroid

Nice one...

Spoiler
Dominik2806_0-1587370372169.png

 

Highlighted
12 - Quasar
Spoiler
207_Spoiler.PNG
Highlighted
Alteryx Certified Partner

It all seems to be regex at the moment. Maybe its just me (Check out the live stream to see me fumble around  https://youtu.be/-FA9lPdiHNc

 

Spoiler
paul_houghton_0-1587654861050.png

 

Completing Alteryx Weekly Challenges Live So you can see how to do it yourself
Highlighted
8 - Asteroid

Game on!

Highlighted
13 - Pulsar

Here is my solution

 

Spoiler
Capture.PNG
Highlighted
8 - Asteroid

Regex is really strong but really needs exercise. Sometimes split to columns by specific characteristics may be easier.

Spoiler
LiD_0-1587895809521.png

 

Highlighted
Alteryx Certified Partner

OK, I'm starting to love RegEx.

Here's the one I used

 

^(\d{7})(.*)\s(\w+)\s\((\d{4})\)\sCAT:(\w+-?\w*)\sPUB:(\w+-?\s?\w*-?\s?\w*)\s\$(\d+\.?\d{0,2})million,\s\$(\d+\.?\d{0,2})million,\s\$(\d+\.?\d{0,2})million,\s\$(\d+\.?\d{0,2})million,\s\$(\d+\.?\d{0,2})million$

 

Highlighted
8 - Asteroid
Spoiler
Kale_Malcom_0-1588027340537.png

 

Kale_Malcom_1-1588027361311.png

 

 getting more comfortable with Regex, in the past I'd have probably done this in pieces with text to columns and formula tools.