Stamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 4 months agoOmnomnomlemmy.dbzer0.comimagemessage-square13linkfedilinkarrow-up1164arrow-down123cross-posted to: shittyasklemmy@lemmy.uhhoh.com
arrow-up1141arrow-down1imageOmnomnomlemmy.dbzer0.comStamets@lemmy.dbzer0.com to Memes@sopuli.xyz · 4 months agomessage-square13linkfedilinkcross-posted to: shittyasklemmy@lemmy.uhhoh.com
minus-squareWildmimic@anarchist.nexuslinkfedilinkEnglisharrow-up11arrow-down1·4 months agoan asterisk in regular expressions indicates an arbitrary amount of characters, so its probably avocados
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up10·edit-24 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”.
an asterisk in regular expressions indicates an arbitrary amount of characters, so its probably 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”.Or a[vocad]*s