I enjoyed this challenge. I tried to use the number of dashes to work out how to parse it but couldn't work out the RegEx that would be needed - I see someone else managed it with a very elegant workflow. Nicely done!
My finished article looks a lot like eveyone elses. 🙂