Hacker News new | ask | show | jobs
by kuboble 1178 days ago
For me writing a regex is easy only if I remember the syntax, which I never do because they differ between languages and I only need them once a month or so.

For me the fastest way is to ask generator to create a valid and not necessarily correct regex, so that I can tweak it. I successfully used gpt for just that recently. It even got the capture groups right.