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.
The bigger regExps you write, the slower and more bug-prone your code will be.