• @[email protected]
    link
    fedilink
    25 days ago

    Regexes aren’t hard to write, their logic is quite simple.

    He did say complex regex. A complex regex is not simple.

    • @[email protected]
      link
      fedilink
      55 days ago

      yes, “complex” regexes are quite simple too. Complex regexes are long, not difficult. They appear complex because you have to “inline” everything. They really are not that hard.

      • @[email protected]
        link
        fedilink
        15 days ago

        This is stupid pedantry. By that logic literally nothing is complex because everything is made up of simple parts.

        • @[email protected]
          link
          fedilink
          35 days ago

          cryptic != complex. Are they cryptic? yes. Are they complex? not really, if you can understand “one or more” or “zero or more” and some other really simple concepts like “one of these” or “not one of these” or “this is optional”. You could explain these to a child. It’s only because they look cryptic that people think they are complex. Unless you start using backreferences and advanced concepts like those (which are not usually needed in most cases) they are very simple. long != complex

          • @[email protected]
            link
            fedilink
            15 days ago

            Ok I can see you haven’t actually come across any complex regexes yet…

            (Which is probably a good thing tbh - if you’re writing complex regexes you’re doing it wrong.)