3 ms·
How would you know if a regex is correct if you dont understand it?
by bazoom42 2y ago
How would you know if a regex is correct if you dont understand it?
- poisonborz 2y agoYou have test strings covering all cases and they match accordingly? The same way you'd know when writing manually.
- bazoom42 2y agoCovering 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.