Mike Maughan sent the message below at 06:28 PM 3/22/2007: >On 23/03/07, Mark Sapiro <[EMAIL PROTECTED]> wrote: > > > > > > ^subject:\s*(\(no[_ ]subject\))?\s*$ > > > > >Thanks for the fix & the explanation. Do you know, that's the first time >I've actually understood a pattern search regex? Wunderbar! :) ---------------- End original message. ---------------------
Learning regular expression construction is not an easy thing beyond the basic stuff. A tool I use to help me interactively develop and test complex regex strings is the Rx toolkit in Active State's Komodo development environment (Komodo handles Perl, Python, PHP, Java and a few other languages). You can try it free and a personal license is pretty cheap. http://www.activestate.com/ I don't work for them, I just love the software because it has made my script programming a lot easier. Dragon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Venimus, Saltavimus, Bibimus (et naribus canium capti sumus) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp