• mormund@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months 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
      ·
      6 months ago

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