this post was submitted on 09 Jul 2023
247 points (94.6% liked)

Programming

17364 readers
216 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

I have to use a ton of regex in my new job (plz save me), and I use ChatGPT for all of it. My job would be 10x harder if it wasn't for ChatGPT. It provides extremely detailed examples and warns you of situations where the regex may not perform as expected. Seriously, try it out.

you are viewing a single comment's thread
view the rest of the comments
[–] Ertebolle@kbin.social 6 points 1 year ago (2 children)

My biggest problem with it has been that it doesn't necessarily understand that some things are impossible - for example, variable-length lookbehinds.

That depends on the regex flavor. Some of them have full support for variable length lookbehinds, for example JavaScript and third-party regex module for Python.

[–] axtualdave@lemmy.world 1 points 1 year ago

A variable length lookbehind is the same as the opposite of a variable length lookahead.