On Mon, Feb 19, 2001 at 06:21:58PM -0500, Bruce A. Petro wrote:
> Many thanks!
> Can you point me to some book or doc or man that says things in fairly
> plain english as you did??? I'm finding a lot of docs on regexps that
> are hard to translate when you are just starting out like me. They
> don't seem to say things like:
> > The "." means "any character", so ".*" means "any string of characters".
Personally, I'd recommend the O'Reilly book, "Mastering Regular
Expressions". If you don't want to buy that book, find someone who's
got the "Programming Perl" book, and read the section on Regular
Expressions. (warning: perl does have some nice extentions to the
standard regex syntax)
> Also, question: I understand the leading .* based on your remark, but
> what about the trailing .* ?? The TO address should always end with t
> the ".com" - is there a need for it, or were you just being ultra
> cautious to get everything possible?
The reasoning behind this is:
> > * ^To: .*about.com.*
...often addresses are formatted in a way like:
John Doe <[EMAIL PROTECTED]>
or
[EMAIL PROTECTED] (John Doe)
but are not that often just the email address alone.
Hope that helps,
--
Josh Huber | [EMAIL PROTECTED] |
PGP signature