105
you are viewing a single comment's thread
view the rest of the comments
[-] sebsch@discuss.tchncs.de -4 points 1 year ago

Is there one thing not screwed up in this language? I mean it's regex, there are so many good implementations for it.

[-] philnash@programming.dev 5 points 1 year ago

JavaScript's regex engine isn't the only one to have these problems. There certainly are other implementations, like Re2 and Rust's implementation, that don't have this issue. But they also lack some of the features of the JS implementation too.

[-] sebsch@discuss.tchncs.de -3 points 1 year ago

Ok thanks for the clarification.

I would argue, the gold standard of regex would be perlre or even re from python. I never heard one discouraging using them. Do you know sth I don't?

[-] burntsushi@programming.dev 3 points 1 year ago

Both Perl and Python use backtracking regex engines and are thus susceptible to similar problems as discussed in the OP.

this post was submitted on 07 Oct 2023
105 points (98.2% liked)

Programming

17314 readers
186 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