• Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      19 hours 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”.