• @[email protected]
    link
    fedilink
    32 months ago

    Empty input Or input of exactly 1 character Or input of at least 2 characters, followed by at least 1 something (idk what \1 matches)

    Did I get it (almost)?

    • @thevoidzero
      link
      1
      edit-2
      2 months ago

      \1 is group 1 which is inside (), so second part is repeated 2 or more times of 2 or more char.

      • @[email protected]
        link
        fedilink
        12 months ago

        Interesting.

        So that means match any string that is made entirely of a single repeating sequence, where repititon is possible.