When you need to regexp...

In order to complete the SSRank.io app, I needed to scrape the current player lists from Scoresheet.com. However, their player list pages are nearly devoid of HTML elements in the body, just huge blocks of text.

So how to pull only specific elements of a line, while keeping groups of lines separated? Regexp, of course. Treat the whole page body like a string, and manipulate away.

But that’s a complicated expression. So I turned to Regex101.com to help me build it. Using large chunks of the actual text data as my source, I was able to specify JavaScript-style regexp, and build my expression in just about an hour. Regex101 shows you the result, including matches and returned components, of your expression on the test string immediately, making it super easy to tweak as you go.

I can’t recommend the tool enough.