by colordrops · 4y ago · 0 comments
If you are afraid of unintended matches, that's a different problem, which you might also get writing the regex yourself!
The solution, i reckon, is to create (may be even via the same AI?) a large list of matches, and you manually look thru to see if there's unintended matches.
If I press a button and one is magically made for me, I can skip that step.
Skipping that step is bad.
So to me this mainly looks like a way for people who don't understand something to put that ignorance into the codebase, setting traps for colleagues down the road. That's not a new experience for me, but this does seem likely to make that easier and more fun, two things I don't think dangerous code needs.
I’d like to see a mathematical estimate of the number of test strings I should generate given some input regex.