lwc wrote:[............]
So now you can understand that "(.*)" or "(.+)" means that everything can be repeated.
In the case of "list(.*)", it would work for list@ (well, only in the former case), list-bla@, list-whatever@, listing@, etc.
This all belongs to a sub-language (with the lack of a better term) called "regional expressions" (aka regexp) that is a part of all the major programming languages (Javascript, CGI, PHP, etc.).
lwc wrote:This isn't DOS.
The wildcard is actually the only part you haven't mentioned - the dot (".").
. is like the * from DOS (i.e. everything or nothing).
Well, sort of. Because in DOS * is enough and here the wildcard is accompanied by * or +, which signal how many times can something (in the case of ".", make it everything) be repeated.
* means whatever is inside (here*) can be repeated 0 or more times. So "here" would work. So would "herehere" and "herehereherehereherehere".
There's also +, which means 1 or more times (not 0). So (here+) means that "herehere" would work and so would "herehereherehere", but not just "here" alone.
In other words, there must be at least one repetition!
() just means which part can be repeated. It signals which letters you refer to. After all, without it, how would it know whether allofthis.* should be repeated or just the word "this", in which case it'd be allof(this*), get it?
So now you can understand that "(.*)" or "(.+)" means that everything can be repeated.
In the case of "list(.*)", it would work for list@ (well, only in the former case), list-bla@, list-whatever@, listing@, etc.
This all belongs to a sub-language (with the lack of a better term) called "regional expressions" (aka regexp) that is a part of all the major programming languages (Javascript, CGI, PHP, etc.).
What's the difference then between using "foobar." and "foobar.*"?
lwc wrote:What's the difference then between using "foobar." and "foobar.*"?
Also, does "." alone mean something must be captured [i.e. "foobar" alone will not be captured - as if I used "foobar(.+)]?
(.*)@domain1.com | (.*)@domain2.com
Return to Support / Hilfe / ayuda / ondersteuning / ...
Users browsing this forum: No registered users and 25 guests