From: Jeff King Date: Wed, 30 Sep 2009 11:28:34 GMT Subject: Re: [PATCH] send-email: fix mutt regex for grouped aliases Message-ID: <20090930112833.GA4984@sigio.peff.net> In-Reply-To: <1254269323-16600-1-git-send-email-felipe.contreras@gmail.com> On Wed, Sep 30, 2009 at 03:08:43AM +0300, Felipe Contreras wrote: > For example: > alias -group friends foo Foo Bar Hmm. If I am reading the mutt docs correctly, is it also legal to have: alias -group group1 -group group2 foo Foo Bar ? Which would need just: > - if (/^\s*alias\s+(\S+)\s+(.*)$/) { > + if (/^\s*alias\s+(?:-group\s+\S+\s+)?(\S+)\s+(.*)$/) { (?:-group\s+\S+\s+)* I think. -Peff