Skip to content

Comment on Regex Isn't Hard (2023)parent

Comments

How would you know if a regex is correct if you dont understand it?

You have test strings covering all cases and they match accordingly? The same way you'd know when writing manually.

Covering all cases? How would that be possible? Even if we only consider ASCII strings, there are 16.000 possible two-character strings, 2 million possible three-character strings and so on.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.