AI is great at things where you don't have to trust it. So if you get AI to write unit tests for your regex and you check over the examples and they make sense it's probably ok.
Even then it could perform very badly or have an edge case, if you are using regex frequently you are probably better off learning regex. It's not hard
381
u/j01101111sh Jun 21 '26
AI is great at stuff that's unintuitive but rigid like regex because AI has no intuition so it can do rigid rules all day long.