procmail
[Top] [All Lists]

Re: Difference between .* and *

1996-10-16 13:05:28
On Wed Oct 16 10:49:16 1996, Alan K. Stebbens wrote:

What's the difference between using .* and * ??

'*' means "zero or more occurances of the previous pattern.
'.' means an arbitrary character.
'.*' means an arbitrary string of characters, including none.

So, "-.*" means a dash followed by an arbitrary string.
While "-*" means one or more dashes.

No, "-*" means zero or more dashes.  I'm sure this is just a typo.
One or more dashes is usually written as "--*".

Shane Castle             | "Perfection, then, is finally achieved, not
Boulder County Info Svcs | when there is nothing left to add, but when
Boulder CO USA           | there is nothing left to take away."
                         |                - Antoine de Saint-Exupery

<Prev in Thread] Current Thread [Next in Thread>