[TxMt] Re: Mail firstLineMatch too restrictive

Grant Hollingworth grant at antiflux.org
Tue Nov 14 21:48:50 UTC 2006


* Jacob Rus <jrus at hcs.harvard.edu> [2006-11-14 14:12]:
>[RFC 2822]: http://tools.ietf.org/html/rfc2822

Yeah, email addresses are pretty free-form.  Trying to write an exact regex  is pointless.  How about:
  ^From: .*(?=\S+@(?=[\w-]+\.)+\w+)

Good enough?



More information about the textmate mailing list