Martin Gregorie wrote:
If you have a copy of "The Camel Book", otherwise known as "Programming
Perl" by Larry Wall, Tom Christiansen & John Orwant" pub. O'reilly, or
know somebody who has a copy, have a read of Chapter 5 'Pattern
Matching' which contains about the clearest explanation of how regexes
work and how to write them that I've seen anywhere - and better yet, it
describes Perl regexes, which is what SA uses.
Martin,
My version of The Camel, admittedly the 2nd edition from 1996, has
chapter 5 as Packages, Modules, and Object Classes. Section 2.4,
however, is a detailed section on Regular Expressions. Is that the one
you meant because I'd like to reference it correctly along with your
other great advice. Is it Chapter 5 in another edition?
Regards,
KAM
--
Kevin A. McGrail
[email protected]
Member, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171