Re: simple regex for highlighting _/* fails

Rado S <[email protected]> Fri, 6 Apr 2007 17:41:51 +0200
Newsgroups gmane.network.tin.user
Message-ID <[email protected]>
=- To [email protected] wrote on Fri  6.Apr'07 at 17:30:57 +0200 -=

> I use this successfully in mutt and tried the same with tin:
> 
> (^|[[:space:]'"(])_[^[:space:]_][^_]*[^[:space:]_]_([[:space:]'").,:!?]|$)
> 
> However, this fails in tin, but I don't understand why.

The funny thing is:
after I played around a bit with it, I found this to work:

(^|[[:space:]'"(])_[^[:space:]_][^_]*[^[:space:]_]_[[:space:]'").,:!?]

I.e. I dropped the () at the end (with the alternative of being EOL).

What's so problematic about having () at the end?!
How else can I make EOL optional to end _ highlight?

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.