0
我想從Outlook電子郵件中提取一些信息並將輸出寫入文本文件。我通過在特定文件夾中獲取電子郵件,然後解析每條消息中的特定字符串來實現宏。下面正則表達式從Outlook消息中提取數據
[optional strings here]
Name: John Doe
[optional strings here]
Email: [email protected]
[optional strings here]
Tel: 555-555-5555
樣品輸入字符串我試圖用一個正則表達式來提取信息,但是我不能拿出適當的正則表達式,將提取我需要什麼,而忽略其餘
這裏是我的到目前爲止有:
(^.*\b(Name|E-mail|Primary-Phone)\b.*$)