Crystal equivalent of Ruby's strscan?

I’m in the process of porting a Ruby project over to Crystal and was wondering what the Crystal equivalent of Ruby’s strscan is?

https://crystal-lang.org/api/0.32.1/StringScanner.html

1 Like

Thanks! All I had to change was:

require "strscan"

to

require "string_scanner"