• kameecoding@lemmy.world
    link
    fedilink
    arrow-up
    34
    arrow-down
    2
    ·
    8 days ago

    Most of regex is pretty basic and easy to learn, it’s the look ahead and look behind that are the killers imo

    • PoolloverNathan
      link
      fedilink
      English
      arrow-up
      11
      ·
      8 days ago

      (?=) for positive lookahead and (?!) for negative lookahead. Stick a < in the middle for lookbehind.