Re: Crazy Regular Expression

  • From: Justin Collier <justinjncr@xxxxxxxxx>
  • To: lcec.code@xxxxxxxxxxxxx
  • Date: Wed, 21 Oct 2009 17:34:34 -0700

Everybody loves those nasty regular expressions. Headaches ftw!

On Wed, Oct 21, 2009 at 5:04 PM, Luke Cycon <lcycon.lcec@xxxxxxxxx> wrote:

> Just thought I would share this.
>
> Its a crazy command using regular expressions that I just wrote up to
> strip emails down to a list of email addresses the email was sent to.
>
> cat Mailing_List | grep '^To:' | sed 's/, /\n/g' | sed 's/.*<\(.*\)>/\1/'
> --
> Luke Cycon <lcycon.lcec@xxxxxxxxx>
>
>
>

Other related posts: