Weekly Challenges

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

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #54: Data Prep Address Parsing

varunvarma87
Asteroide

Challenge 54 completed 

 

 

Saqueador
Had to fix street (example- Circle, Street, Drive, etc...) on regex. 
 2019-09-26 11_02_50-Window.png

 

 

SueDonim
Asteroide

Good parsing practice.  Of course, there could be a problem if the City name started with "St" as in "St Louis" - would be hard to differentiate between "Street" and "Saint", though I suppose you could look for two consecutive instances of "St" in that case

 

Saqueador

Was struggling with figuring out how to do a switch, when saw idea about replacing text with a pipe.  Instead, I changed all street types (e.g. Avenue, Circle, etc) to Street.  Then it was a simple parsing from that point.

 

Probably should learn RegEx....


MySolution.PNG

 

 

 

 

 

 

 

 

 

 

 

paulburrows
Asteroide

Deffo need more regex experience!

Billigans
Asteroide

I believe this can be done with a single RegEx tool. 

 

Saqueador
I ended up only using regex to get the data that I needed by parsing and removing case sensitivity.

^.+(Circle|Street|Drive|Road|Ave|Avenue|St)\s(.+)\s(\u{2})($|\s\d{5})

If anyone has any idea how to not have to use the street identifiers as a marked group as well as getting the extra space in the address I'd be very interested. If you can do that you can complete this challenge with a single tool.
blundebjerg
Asteroide
 
JennyMartin
Cometa
Saqueador
AWC54.PNG

Looking forward to seeing solutions with fewer tools!

justindavis
Bola de fogo

Spent a lot more time fiddling with the RegEx than I'd have liked, but the good thing is after stopping to figure out why it wasn't parsing the Zip the way I wanted, I had a good takeaway that will continue to help me as I think through RegEx going forward!

Saqueador
challenge_54_solution_justindavis.PNG
mat_budden
Asteroide

Hi All,

 

Please find my Result below.

 

Saqueador
Just used Formula's and Text to Columns, Not Terribly Efficient, But it works.

 

Thanks

Mat

RoDO
Asteroide

My solution with durth regex

 

Saqueador
(Circle|Street|Drive|Road|Ave|Avenue|St)\s(.*)\s([A-Z]{2})\s?(\d{5})?
challenge_54_RODO_Solution.png
Inactive User
Não aplicável