我有一个查询,其中一列是电子邮件标题的字符串,例如:
From: Media Temple user (mt.kb.user@gmail.com)
Subject: article: How to Trace a Email
Date: January 25, 2011 3:30:58 PM PDT
To: user@example.com
Return-Path: <mt.kb.user@gmail.com>
Envelope-To: user@example.com
Delivery-Date: Tue, 25 Jan 2011 15:31:01 -0700
Received: from po-out-1718.google.com ([72.14.252.155]:54907) by cl35.gs01.grid ...
Received: by po-out-1718.google.com with SMTP id y22so795146pof.4 for <user@exa ...
Received: by 10.141.116.17 with SMTP id t17mr3929916rvm.251.1214951458741; Tue,...
Received: by 10.140.188.3 with HTTP; Tue, 25 Jan 2011 15:30:58 -0700 (PDT)
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=d...
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:da...
Message-Id: <c8f49cec0807011530k11196ad4p7cb4b9420f2ae752@mail.gmail.com>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_3927_12044027.1214951...
X-Spam-Status: score=3.7 tests=DNS_FROM_RFC_POST, HTML_00_10, HTML_MESSAGE, HTM...
X-Spam-Level: ***
Message Body: This is a KnowledgeBase article that provides information on how ...
我只想提取'To:'
字段中包含的电子邮件地址,在上面的示例中user@example.com
。
我怎样才能做到这一点?