On Mar 5, 2010, at 7:07 AM, Paul K. Dickson wrote: > Does anyone have a regex to match a blank subject or a subject with just > “Subject: re”? Trying to avoid catching subjects with any additional > characters. > > I’ve tried: > > ^Subject: $ > Subject: $ > Subject: \n > Subject: \Z > Subject: \z > > > And all of the above except with the “re” included.
Pretty dangerous pattern, at least, with the amount of blank subjects I get. Try 10 or more spaces, that one seems pretty safe. At any rate, have you tried: ^Subject: ^$ I think in general, isnt the format "Subject: CRLF" If that is the case, you may want to match on that. I bet not all mailers follow the CRLF method, but I would be ASSP normalizes it for you. -- Scott * If you contact me off list replace talklists@ with scott@ * ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Assp-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/assp-user
