Interesting that he claims that it's difficult to change a regular expression to cope with new requirements but easy to change a hand-coded loop.
In my experience, the opposite is true (up to the point when your grammar becomes non-regular).
In my experience, the opposite is true (up to the point when your grammar becomes non-regular).
Doing that in a loop seems to be much more difficult. And unless you work on utf-32 data, you have to handle variable-size encoding of characters.