I use this

"\( \|^\)\(\>\=\)\([;:8]\{1}\)\([-^]\=\)\([)(><}{|/DPb#@&*\*]\{1}\)"

Overall I like it, but it does catch a very few strays, and it does
catch the leading space if it is there.  It won't catch smiles not
separated by words like this:)  Not sure if I want to keep it that
way, but to catch those too, I would use this:
"\(\>\=\)\([;:8]\{1}\)\([-^]\=\)\([)(><}{|/DPb#@&*\*]\{1}\)"

BTW, I use this with vim as my pager, not sure how it will work in the
mutt builtin reader.

HTH
Lou

On 06/22/01 05:55 AM, Ross Davis sat at the `puter and typed:
> Can anyone tell me how I can force the following regexp match *only* concatenated 
> substrings *not* the individual substrings as well as the concatenated ones!?  
> From my understanding, once the whole regexp is in parentheses it should match each 
> individual substring  together as a concatenated string - any ideas?
> For example, this regexp matches a bunch of smileys fine but it also highlights 
> strings like ':', ';', 'D', 'P', etc. on their own. 
> 
> 
> color body brightyellow black "([:;]+[-^~]?((\)\))|(\(\()|[][)(><}{|/DP]){1})"
> 
> 
> -Ross
> 

-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
[EMAIL PROTECTED]
http://acadia.ne.mediaone.net                ԿԬ
  • RegExp Ross Davis
    • Louis LeBlanc

Reply via email to