Re: how would you match this?

2016-10-17 Thread nfb
On Sun, Oct 16, 2016 at 05:47:01PM -0400, Jon LaBadie wrote: > I played around with your sequence and confirmed your observation. > Changing the quotes from double to single quotes seems to get > what you are looking for. > > Again that would go along with preserving backslashes during one >

Re: how would you match this?

2016-10-16 Thread Jon LaBadie
On Sun, Oct 16, 2016 at 10:29:09PM +0200, nfb wrote: > > It looks to me as if a second round of evaluation is being done. > > During the first round the "\"s would be removed leaving "[[0-9]+]". > > > > The second round would pair the first "[" with the first "]", the > > one before the "+" and

Re: how would you match this?

2016-10-16 Thread nfb
> It looks to me as if a second round of evaluation is being done. > During the first round the "\"s would be removed leaving "[[0-9]+]". > > The second round would pair the first "[" with the first "]", the > one before the "+" and would make your character class be digits > or opening square

Re: how would you match this?

2016-10-16 Thread Jon LaBadie
On Sun, Oct 16, 2016 at 05:58:27PM +0200, nfb wrote: > Hi, > maybe this is a general and basic question about regex, but i also > tried on regex101.com and it really should work... > In my body i'd like to color URL indexes in the form [$ANYNUMBER], so > in my muttrc i set a line like this: > >

how would you match this?

2016-10-16 Thread nfb
Hi, maybe this is a general and basic question about regex, but i also tried on regex101.com and it really should work... In my body i'd like to color URL indexes in the form [$ANYNUMBER], so in my muttrc i set a line like this: color body brightmagenta default "\[[0-9]+\]" Now, strings like: