• mormund@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 days ago

    In modern languages you can name them with labels as well yes. Not sure about the syntax right now. Something like (?label:…) I think

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      10 days ago

      It’s (?<NAME>...) and those are the named capture groups referred to in the post.