On Mon, Aug 26, 2002 at 11:30:51PM +1200, Michael Beattie wrote:
> On Mon, Aug 26, 2002 at 11:16:28PM +1200, Keith McGavin wrote:
> > my ~/.muttrc file
> > ### color body yellow black "[ \t]>?[;:][-=]?[PpD)/(|}{><]"
> above is split into 5 parts:
> [ \t] -> Must start with a space or tab. (some pastings of command
> line promts have ":/" in them.
> >? -> An optional ">" - A frown.
> [;:] -> The eyes
> [-=]? -> optional nose.
> [PpD)/(|}{><] -> different mouths.
> > I'm using mutt 1.4i. Does your expression work ok on your mutt mua.
> Yep. works perfectly. (Mutt 1.4i (2002-05-29))
With mine too. (Mutt 1.3.28i (2002-03-13))
Some tweaks: "(^|[ \t])>?[;:8=][-^]?[][PpD)/(|}{><]"
Note the intentional [], which isn't a [] at all ;)
To put a ']' in a character list, the ']' must be the first
character listed. To match a '-', put it first or last.
There's a neat regex manual here:
http://sunsite.utk.edu/gnu/regex/regex_toc.html
Tim
--
Timothy Musson - [EMAIL PROTECTED]
http://homepages.ihug.co.nz/~trmusson/
Who messed with my anti-paranoia shot?