4 ms·
GPT has completely changed my use and feeling about regex. I used to hate them, would rather write the logic myself in a language I understand. But now I just a
by andrewfromx 4y ago
GPT has completely changed my use and feeling about regex. I used to hate them, would rather write the logic myself in a language I understand. But now I just ask GPT for the regex I need and voila!
- tomashubelbauer 4y agoThat'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.
- sroussey 4y agoGot 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.
- leobg 4y agoI 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.
- zabzonk 4y agoand next you will be asking gpt "how do i do multiplication"?
- MathMonkeyMan 4y agoThere will be no need to ask.
- pests 4y agoDidn't people say this about calculators too probably?
- zabzonk 4y agothey did, and they were right
- 8uhaal 4y agoWriting regexes is one of the most fun things that sometimes pop up at work. A little puzzle. Well-defined, clear that there must be a solution, somewhat easily checkable .. the easiest kind of task. I enjoy this just as much as some people enjoy crosswords or sudoku. Nobody would ask chatgpt to solve a sudoku for them (It would get them all wrong anyway.) No way I'm gonna let GPT take this away from me.
- andrewfromx 4y ago"No way I'm gonna let GPT take this away from me" surely you can see a photoshop expert from years ago saying this about pixel blurring?
- meindnoch 4y agoWhat is "pixel blurring"?
- chrismorgan 4y agoEvery regular expression I’ve seen produced by a large language model has either being broken, or done an unacceptably bad job due to being the wrong tool for the job (e.g. validating an email address with a fairly short regular expression, which I’ve seen people share the answers of at least three times).
- Turing_Machine 4y agoThe regex GPT gave me the other day was pure shite. However, that was only a small part of the job, so GPT was still a big win overall.