Here’s an impressive example of Ruby’s String and Regexp methods. We’re going to use them to parse a string, and then form an array of Match object tokens.

https://gist.github.com/thehashrocket/ef617f29458fc668da69e89629c89f38.js