logoalt Hacker News

whatever101/16/20261 replyview on HN

[flagged]


Replies

acdha01/16/2026

This is too hot a take. Regular expressions are used in some cases where they shouldn’t be, yes, but there’s also been a ton of code which used other string operations but had bugs due to the complexity or edge-cases which would have been easier to avoid with a regex. You should know both tools and when they’re appropriate.

show 2 replies