Mac@programming.dev to Programming@programming.dev · 9 months agoStrings do too many thingsbuttondown.emailexternal-linkmessage-square42fedilinkarrow-up1106arrow-down113
arrow-up193arrow-down1external-linkStrings do too many thingsbuttondown.emailMac@programming.dev to Programming@programming.dev · 9 months agomessage-square42fedilink
minus-squareJesus_666@feddit.delinkfedilinkarrow-up5·edit-29 months agoAnd it’s matched by .+@.+ as it contains an @. Remember, we’re taking about regular expressions here so .+ means “a sequence of one or more arbitrary characters”. It does not imply that an actual dot is present. (And I overlooked the edit. Oops.)
And it’s matched by
.+@.+
as it contains an @.Remember, we’re taking about regular expressions here so
.+
means “a sequence of one or more arbitrary characters”. It does not imply that an actual dot is present.(And I overlooked the edit. Oops.)