Re: regexp and pattern limit

2012-04-03 Thread Cameron Simpson
On 03Apr2012 12:24, m...@raf.org wrote: | Cameron Simpson wrote: | > You need double backslashes because two things are happening. | > [...snip...] | | the best computing advice i've ever had was: | "Double the number of backslashes!" | - John Mackin John "Iron Bar" Mackin? | he didn't even

Re: regexp and pattern limit

2012-04-03 Thread Will Fiveash
On Tue, Apr 03, 2012 at 12:24:54PM +1000, m...@raf.org wrote: > Cameron Simpson wrote: > > > You need double backslashes because two things are happening. > > [...snip...] > > the best computing advice i've ever had was: > > "Double the number of backslashes!" > - John Mackin > > he didn't

Re: [SOLVED] Re: regexp and pattern limit

2012-04-03 Thread David Champion
* On 02 Apr 2012, steve wrote: > > \\<(e|E)tch\\> > > does exactly was I was looking for. By way of explanation: the catch here is that because of mutt's parsing rules with quotations, this expression is scanned twice and needs to have the backslashes themselves escaped. You'll find this often

Re: regexp and pattern limit

2012-04-03 Thread mutt
Cameron Simpson wrote: > You need double backslashes because two things are happening. > [...snip...] the best computing advice i've ever had was: "Double the number of backslashes!" - John Mackin he didn't even know what my problem was when he said it but he was right. if it doesn't fix y

[SOLVED] Re: regexp and pattern limit

2012-04-02 Thread steve
Dear mutt users, Thanks for all of your replies. \\<(e|E)tch\\> does exactly was I was looking for. Have a nice day, Steve

Re: regexp and pattern limit

2012-04-02 Thread Cameron Simpson
On 02Apr2012 16:16, Gary Johnson wrote: | On 2012-04-02, steve wrote: | > I'm trying to write a regexp in order to capture some words to put them | > in color. I have a line like this in my .muttrc: | > | > color body red default "\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato)" [...] | Tak

Re: regexp and pattern limit

2012-04-02 Thread Michael Ludwig
steve schrieb am 02.04.2012 um 22:01 (+0200): > > I'm trying to write a regexp in order to capture some words to put > them in color. I have a line like this in my .muttrc: > > color body red default > "\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato)" > > I want to catch only etch, but not

Re: regexp and pattern limit

2012-04-02 Thread Gary Johnson
On 2012-04-02, steve wrote: > Hi, > > I'm trying to write a regexp in order to capture some words to put them > in color. I have a line like this in my .muttrc: > > color body red default > "\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato)" > > I want to catch only etch, but not fetch nor f

regexp and pattern limit

2012-04-02 Thread steve
Hi, I'm trying to write a regexp in order to capture some words to put them in color. I have a line like this in my .muttrc: color body red default "\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato)" I want to catch only etch, but not fetch nor fetchera (or whatever combination). So I tried