3 ms·
But smaller does not always mean better. Benchmarks have shown that parsers based exclusively on regular expressions can be even several times slower than parse
by jarek-foksa 14y ago
But smaller does not always mean better. Benchmarks have shown that parsers based exclusively on regular expressions can be even several times slower than parsers that use scanner/tokenizer.
The bigger regExps you write, the slower and more bug-prone your code will be.