• @philnashOP
    link
    58 months 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.

    • @[email protected]
      link
      fedilink
      -38 months 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
        link
        English
        38 months ago

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