News for hackers. Stuff that matters.
Re:Introducing ChatGPT Plus by shagie on Wednesday February 01, 2023 @02:47PM (#34616487)
Yep. But it gave straight up code rather than trying to persuade a natural language LLM to write code.

The regex I was expecting would be

    "\\b(dog.*)|(.*cat)\\b"
The key point is to ask the code model. Part of what ChatGPT does is it appears to categorize the question and then may dispatch it to the code model. If you know you have a code question, asking the code model first would likely be more productive and less expensive.
Re:Introducing ChatGPT Plus by _tom_ on Wednesday February 01, 2023 @05:39PM (#34619039)
That's not a good regex. The cat part is harder than the dog part.

you regex will match the whole line up to cat.

Re:Introducing ChatGPT Plus by shagie on Wednesday February 01, 2023 @09:43PM (#34621372)
I don't claim it was good - just what I was expecting from the prompt.