procmail
[Top] [All Lists]

.* question

2003-05-19 01:58:55
Hi,

I'm new to regex(in general) and procmail.
I have questions regarding .*
If I have a pattern 'abcdef' and a regex .* without
single quote.
. matches any single character except new line which
is 'a' in this case.
* matches zero or more times of the preceeding
character.
My questions: After . matches 'a', does * look for
another 'a' or it just continue matching 'b', 'c',
...'f'?
Which part of 'abcdef' does the .* regex match? Only
'a' or the whole 'abcdef'? 
I know .* will match 'abcdef' but I'm not sure it
matches the whole word or just 'a'.
Please help my newbie's questions.
Thanks,

stand

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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