Alright, this works as well ;) I have no idea what the regexp refer to
though and yours is considerably easier to understand..

The question still remains though, why does mutt freeze.. 

* Thomas Roessler <[EMAIL PROTECTED]> [000629 15:44]:
> On 2000-06-29 14:46:31 +0800, Wari Wahab wrote:
> 
> > > color body brightyellow  default    " \([A-Z']{2,}[ ,]*\)+"
> 
> As a general rule, try to avoid regular expressions which
> nest multiple instances of "+" and "*".  They tend to take
> very long to apply.  
> 
> Note, BTW, that the grouping and the trailing + are not
> needed in this case (mutt does something which has the
> effect you intend to achieve with hthis), so you may wish
> to try this one instead:
> 
>   color body brightyellow default "[-A-Z'][-A-Z'][-A-Z']*[ ,]*"
> 
> It should work considerably faster.
> 

-- 
Regards: Wari Wahab
Never offend people with style when you can offend them with
substance.
                -- Sam Brown, "The Washington Post", January 26, 1977

Reply via email to