Comment on Regex Isn't Hard (2023)parentComments−bazoom421yHow would you know if a regex is correct if you dont understand it?−poisonborz1yYou have test strings covering all cases and they match accordingly? The same way you'd know when writing manually.−bazoom421yCovering 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.
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.