kevin_thibedeau 4 days ago

Don't learn the Perl influenced extensions. You just need POSIX EREs (and BREs for some older utilities) which are simple enough to keep in the head.

  • ziml77 4 days ago

    And with the POSIX EREs, everything except the syntax for character classes will carry over to other common Regex dialects.

    • Over2Chars 4 days ago

      I'll just leave this here

      "The Insanity Of Linux's Regular Expressions " https://www.youtube.com/watch?v=ys7yUyyQA-Y

      • earnestinger 3 days ago

        Many loosely compatible (so, not compatible if we are strict..) implementations are a problem, but awareness and testing helps.

        All in all, my life would be miserable if I would not have regexp available in grep/sed/editor/ide/java/python, their usefulness trump any such inconveniences.