StringScanner provides for lexical scanning operations on a String. WWW: https://github.com/ruby/strscan