2 ms·
> Ruby has an equally (if not more) powerful `StringScanner` The string scanner is just a step by step matching of individual expressions. Because they are no
by the_mitsuhiko 11y ago
> Ruby has an equally (if not more) powerful `StringScanner`
The string scanner is just a step by step matching of individual expressions. Because they are not folded together the "skip non matching" part has been done in Ruby which is precisely what the Python scanner avoids.