-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David B Funk wrote:
> On Tue, 16 May 2006, Craig McLean wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> [snipped]
>>
>> I use this style to catch a couple of common text formatting oddities
>> caused by machine-generated input, see:
>> http://fukka.co.uk/sa-rules/local/textstyles.cf
>>
>> Thinking about it, this stuff will nest fairly well, so this should work:
>>
>> rawbody T_30_DODGY_DIVS m'(?:<DIV>\s{0,}?[\$%\w]\s{0,}?</DIV>.{1,40}?){30}'i
>>
>> Stick with rawbody, you don't need full. Also, you'll probably want
>> case-insensitive, and \s{0,}? to match zero or more whitespace.
> 
> Only problem with that is "rawbody" processes the original message one
> line at a time,  unlike "full" or "body" which concatinate the whole
> message into one large string. So if you're looking for some
> characteristic of a message which is spread accross multiple lines of
> input you cannot use "rawbody".

Bugger, you are correct of course. My thanks to you and Sanford Whiteman
 for reminding me that rawbody doesn't (yet) allow multiline matches.

It's 2 AM, I shouldn't be allowed near email :-(

C.

- --
Craig McLean            http://fukka.co.uk
[EMAIL PROTECTED]       Where the fun never starts
        Powered by FreeBSD, and GIN!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEaSY5MDDagS2VwJ4RAnDXAJ9IkMhnjIwhhjWad4KfbZWYYxarjACdFccH
/0Fq/bDhx3WUgS5fCwelKk0=
=x5Ln
-----END PGP SIGNATURE-----

Reply via email to