• Wildmimic@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    5 days ago

    an asterisk in regular expressions indicates an arbitrary amount of characters, so its probably avocados

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      5 days ago

      In regular expressions, it would match “aaaaaaaas”, since the character before the asterisk is what needs to be repeated. To match “avocados”, the pattern would be a.*s (or a\w*s).

      Or alternatively, a*s as a glob pattern would match “avocados”.