3 ms·
It’s funny but I have made the opposite transition recently. The reasons: Writing parsing code by hand tends to be verbose, error prone (such as off by one err
by superjan 4y ago
It’s funny but I have made the opposite transition recently.
The reasons:
Writing parsing code by hand tends to be verbose, error prone (such as off by one errors), ad hoc, and full of temporary strings.
Editor syntax highlighting (and also sites like regex101).
Lastly regexes are matched in one go (match /no match) which is good for readability.
I do avoid making regexes long if I can.