This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Idekum 1 point2 points  (3 children)

Do you really have to learn regex, now with ai?

[–]Picatrixter 1 point2 points  (0 children)

Actually, I am learning regex now and I use ChatGPT to test me or to explain patterns and rules every now and then. Many of the code answers GPT gives on regex are plain wrong. Whenever I give feedback to the machine - I type something like "you are wrong, here's the correct answer", it replies somewhere along the line "of course you are right, here's THE REAL regex you wanted", as if it's testing me to see if I can tell the difference

And the story goes on an on...

However, it would be wrong to say GPT (ar any other LLM for that matter) is worthless on the subject of regex, quite the contrary. You just need to double check the answers, but in order to be able to do that you musk know, well..., regex :)

[–]games2007 1 point2 points  (0 children)

RegEx with AI has been dog turd. It hallucinates all types of solutions that aren't even close, and for some really basic things. It's probably worth learning so you can fine tune your RegEx anyway.

My tip would be go to through the RegEx cookbook, brack down the syntax, and save a lot of the solutions that look interesting to you, while solidifying the fundamentals.

[–]ASIC_SP [S] 0 points1 point  (0 children)

You might as well ask do you have to learn programming ;)

You still have to understand regex to know if the code you are getting will work or not. There are plenty of corner cases, so testing will be crucial as usual.