News for hackers. Stuff that matters.
Re:Irregular Expressions by tomashubelbauer on Sunday April 09, 2023 @11:11AM (#35503471)
That's interesting. I personally like regexes very much but I'm slow to create them so I figured I'd ask ChatGPT a few times and just double check its work and it got them all wrong.
Re:Irregular Expressions by sroussey on Sunday April 09, 2023 @01:34PM (#35504755)
Got them wrong for me as well. :/

I could point out the flaw and it would fix it, but introduce another.

However, I got enough out of it to rewrite it myself.

Re:Irregular Expressions by leobg on Sunday April 09, 2023 @04:16PM (#35506057)
I recently asked it to produce a regex for me, and it responded that as a large language model, it wasn’t allowed to produce hate speech… Not making this up.