Re: [PATCH take 3 0/4] color-words improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 14 Jan 2009, Thomas Rast wrote:

> Teemu Likonen wrote:
> >     -aaa (aaa)
> >     +aaa (aaa) aaa
> 
> Bug aside, examples like this one make me wonder if we should force a
> "last resort" match for `[^[:space:]]`.  For example,
> 
>       -aaa [aaa]
>       +aaa (aaa) aaa
> 
> would still give you
> 
>       aaa (aaa)<GREEN> aaa<RESET>
> 
> which may be unexpected.

But why should it be unexpected?  If people say that every length of "a" 
makes a word, and consequently everything else is clutter, then that's 
that, no?

So people might be surprised, but then they should have said something 
like

	[-.+#@"'$%^&*([{<>~|]*[A-Za-z][A-Za-z0-9]*[-.+#@"'$%&*)\]}>|]*

instead.

Although I have to say that for some applications, it is a pity that 
even POSIX extended regular expressions knows neither lookahead nor 
lookbehind.

Which reminds me... should we activate REG_EXTENDED by default?

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux