This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit Feedback
Great work @JonMcMillin 🙂
@KevinTang Nice try but your regular expression is not accounting for the last header which does not contain a trailing space.
Because there are eight separate elements on the header row, this did not cause an error but "Annual Claims" is not an actual header but rather, I assume, the title of the table. This is causing your headers to be misaligned with the corresponding data.
Finally! That took a while...
Not the most elegant but fairly automatic (not as automatic as I'd like it to be though. I'll have a look at the solution now and see how you can make it better
Really took me quite some time to do this! Really wish I can use lesser tools though! Attempted Regex, and then resorted to not using it at all.