Stamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 14 天前Omnomnomlemmy.dbzer0.comimagemessage-square14linkfedilinkarrow-up1161arrow-down123
arrow-up1138arrow-down1imageOmnomnomlemmy.dbzer0.comStamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 14 天前message-square14linkfedilink
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up9·edit-214 天前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”.
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*s
as a glob pattern would match “avocados”.Or a[vocad]*s