3 ms·
Just because it spits out a RE doesn't mean the RE is what you wanted. For one thing, you'll need to be precise in your prompt.
by WalterBright 2y ago
Just because it spits out a RE doesn't mean the RE is what you wanted. For one thing, you'll need to be precise in your prompt.
- amelius 2y agoYou don't need to be precise. Just give it an example string and tell it what information you want to extract from it and it usually works. It is just way faster than doing it manually.
- zikduruqe 2y agoClaude/ChatGPT has become my man pages.
- ojosilva 2y agoYeah, in line with the old RE adage: I had a problem. I used AI. Now I have two problems.
- antod 2y agoRhetorical question: Can you ever fully be sure you have the regex you wanted?
- rjh29 2y agoWriting regexes by hand is hard so there will always be some level of testing involved. But reading a regex and verifying it works is easier than writing one from scratch.
- antod 2y agoMy overly snide point about regexes was that most of the time "verifying it works" is more like finding and fixing a few more edge cases on the asymptotic journey towards no more brokenness.