procmail
[Top] [All Lists]

Re: Difference between .* and *

1996-10-16 10:52:50
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.

Please read the man page on "regex" or "egrep", or both.

  > For example:
  > 
  > :0:PG/lock.administrative
  > * $ ! ^TOowner-.*$PGHOST
  > PG/Administrative
  > 
  > or
  > 
  > :0:PG/lock.administrative
  > * $ ! ^TOowner-*$PGHOST
  > PG/Administrative

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