Karsten Bräckelmann wrote:
> On Thu, 2011-04-21 at 15:47 -0800, Kevin Miller wrote:
>> Karsten Bräckelmann wrote:
>>> What you want. The string '<br>', repeated five times (or more). For
>>> the quantifier, you need to group the string.
>>> 
>>>   /(?:<br>){5}/
> 
>> Great.  I've changed my rule to that, and am going to look at Adam's
>> somewhat enhanced version to understand what all it's doing.  To wit:
>>  rawbody LOCAL_5X_BR_TAGS   /(?:<br\/?>[\s\r\n]{0,4}){5}/mi
> 
> That should do the trick indeed.
> 
> After this, I strongly suggest to carefully re-read the entire
> thread, and read some docs specifically about the points raised. That
> includes RE peculiarities [1] you used with previous REs without
> knowing them, as well as my escaping notes with using the shell.   
> 
> 
>> I note that Adam used rawbody rather than body, so I presume that I
>> should change my rule to that as well.
> 
> Yup, he explained why you need that -- otherwise, HTML tags are not
> preserved verbatim, but HTML parts rendered and normalized. 
> 
> 
> [1] PCRE flavor, Perl Compatible REs.

Again, thanks very much to all that chimed in.  Lots to digest here, and I'm 
sure I'll still miss some of the finer points, but having a real problem to 
solve is the best way to actually learn this stuff.

Have a great day gentlemen... 

...Kevin
-- 
Kevin Miller                Registered Linux User No: 307357
CBJ MIS Dept.               Network Systems Admin., Mail Admin.
155 South Seward Street     ph: (907) 586-0242
Juneau, Alaska 99801        fax: (907 586-4500

Reply via email to