Stamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 6 months agoOmnomnomlemmy.dbzer0.comimagemessage-square9linkfedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageOmnomnomlemmy.dbzer0.comStamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 6 months agomessage-square9linkfedilink
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up1·edit-26 months agoIn 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”.
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(ora\w*s).Or alternatively,
a*sas a glob pattern would match “avocados”.