Asterisk
cormullion.github.io
Asterisk
1–10 of 21 posts
Re: Asterisk
#2Re: Asterisk
#3"." is the wildcard character. "*" is a quantifier meaning 0 or more of the previous.
Re: Asterisk
#4"Perhaps this is where the use of * as the wild-card character comes from." "." is the wildcard character. "*" is a quantifier meaning 0 or more of the previous.
ie.: in most OSes you can use * as wildcard for filename.
file.*
will refer to all files named "file" with any extension
.zip
will refer to all files with any name as long as they have the zip extension
is a wildcard in most contexts while "." is wildcard only in regex that i know.
Re: Asterisk
#5Re: Asterisk
#6"Perhaps this is where the use of * as the wild-card character comes from." "." is the wildcard character. "*" is a quantifier meaning 0 or more of the previous.
in regex this is correct, but in many other contexts * is used as wildcard. ie.: in most OSes you can use * as wildcard for filename. file.* will refer to all files named "file" with any extension .zip will refer to all files with any name as long as they have the zip extension is a wildcard in most contexts while "." is wildcard only in regex that i know.
Perhaps this is where the use of * as the wild-card character comes from. I find regular expressions can induce swearing, occasionally.
Re: Asterisk
#7Earlier quoted context omitted.
in regex this is correct, but in many other contexts * is used as wildcard. ie.: in most OSes you can use * as wildcard for filename. file.* will refer to all files named "file" with any extension .zip will refer to all files with any name as long as they have the zip extension is a wildcard in most contexts while "." is wildcard only in regex that i know.
True. But in the article, the full paragraph reads like this: Perhaps this is where the use of * as the wild-card character comes from. I find regular expressions can induce swearing, occasionally.
Re: Asterisk
#8Re: Asterisk
#9Earlier quoted context omitted.
True. But in the article, the full paragraph reads like this: Perhaps this is where the use of * as the wild-card character comes from. I find regular expressions can induce swearing, occasionally.
* is the wildcard in some forms of regular expressions, such as file name globs.
The article is about the asterisk character, and the connection to the wild-card seems legit. But the sentence "I find regular expressions can induce swearing, occasionally" (which I agree fully with!) hints towards the idea that the * is used as a wildcard in regular expressions, which I think isn't quite true.
[1] https://en.wikipedia.org/wiki/Glob_(programming)#Compared_to...
Re: Asterisk
#10Earlier quoted context omitted.
True. But in the article, the full paragraph reads like this: Perhaps this is where the use of * as the wild-card character comes from. I find regular expressions can induce swearing, occasionally.
* is the wildcard in some forms of regular expressions, such as file name globs.