On 04/21/2011 05:22 PM, John Hardin wrote:
> On Thu, 21 Apr 2011, Adam Katz wrote:
> 
>> rawbody LOCAL_5X_BR_TAGS   /(?:<br\/?>[\s\r\n]{0,4}){5}/mi
> 
> ...when does \s{0,4} not match the same text as [\s\r\n]{0,4} ?
> 
> (i.e. \r and \n are whitespace, no?)

I believe they are identical assuming /msi flags.  I seem to recall a
particular problem with the engine having trouble here, though that was
probably related to rendered bodies on systems that determine line
breaks differently.  It may instead be related to something specific
with my company's implementation, which is rather nonstandard.

Finally, [\s\r\n] is more legible for troubleshooting as it acts as a
reminder of what is going on.  In the event that there is an efficiency
issue, \s is first.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to