News for hackers. Stuff that matters.
Re:A portable, modern regular expression language by pygy_ on Friday December 30, 2022 @09:05AM (#34185076)
RegExp is optimized for typing, not for reading.

Trouble comes when one need to update or debug a complex RegExp. The one you posted is not that complex.

Re:A portable, modern regular expression language by ttfkam on Friday December 30, 2022 @11:28AM (#34186539)
But isn't that true of most programs once they reach a certain level of complexity? Especially after they've been optimized? Eventually one relies on tests to ensure your changes don't introduce bugs and unwanted side effects. Sadly, most folks don't bother to write tests for their regexes.