Re: [RFC PATCH] git-send-email: Validate recipient_cmd (to-cmd, cc-cmd) addresses
- From
Joe Perches <joe@perches.com>
- Date
- Apr 20, 2011, 23:01 UTC
- Message-ID
- <1303340477.24766.43.camel@Joe-Laptop>
- In-Reply-To
- <BANLkTintK1KgPWX7ycMQtVBnKi+tVj7k2Q@mail.gmail.com>
On Thu, 2011-04-21 at 00:50 +0200, Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> On Thu, Apr 21, 2011 at 00:45, Joe Perches <joe@perches.com> wrote: > > On Thu, 2011-04-21 at 00:29 +0200, Ævar Arnfjörð Bjarmason wrote: > >> On Wed, Apr 20, 2011 at 23:50, Joe Perches <joe@perches.com> wrote: > >> > + my ($recipient_name, $recipient_addr) = ($recipient =~ /^\s*(.*?)\s*(<[^>]+>)/); > >> In Perl you can write (<.*?>) instead of (<[^>]+>) > > Hey Ævar. That matches <>. Not a good email address. > True, but you can use <.+?> instead.
Nope, that matches all of "<>>" I want to terminate the match on the first >.