RegExGPT is a online playground that lets you enter a source and a target string to let GPT generate the regular expression for a match. But what are the pros and cons of the GPT approach to regex code generation?
Despite their power, regular expressions come with their own challenges; they have a tendency to quickly become unreadable so that understanding them becomes a matter of deobfuscation as well as learning how to use them involves a steep curve.
As such, there were always attempts to ease the path to regex mastery by generating regular expression using natural language or expressing intent, even before the advent of GPT.
One such occasion was utilizing Genetic Programming for that purpose, as described in Automatically Generating Regular Expressions with Genetic Programming :
Is it possible to "breed" a correct regular expression so that you don't have to go to the trouble of actually working it out for yourself?