On Mon, Aug 26, 2002 at 11:16:28PM +1200, Keith McGavin wrote:
> Hi Mike,
>      I had a few problems getting the -=[]<> characters from your above
> expression to work in my ~/.muttrc file. The only way I could get yellow
> smileys was by splitting the expression up into three lines.
> Also added forward slashes to the first line so characters =<> were taken
> literally.
... 
> color body yellow black "[t\>\<\=;:?PpD)(|}{><]"
> color body yellow black "[][]"
> color body yellow black "-"

I'm not sure you understand the regular expression.

> ###  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.

if you take your first regex: "[t\>\<\=;:?PpD)(|}{><]"

You have one group of characters.
a t, >, <, =, ;, : (optional), P, p, D, ... etc

<, > and = are not special in this context, so dont need to be escaped. the
t does, because it refers to a tab.

Your second regex has two empty sets.

Your third will match *any* '-' in the message.

> I'm using mutt 1.4i. Does your expression work ok on your mutt mua.

Yep. works perfectly. (Mutt 1.4i (2002-05-29))

Mike.
-- 
Michael Beattie <[EMAIL PROTECTED]>

Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.            --unknown source

Reply via email to