I have a error of my program to send emails. Now i have the files where are exported e-mail's. Searching of regular expression, what can get me only the email in Return-Path.
Some content
Return-Path: <email@domain.com>
Some content
I have a error of my program to send emails. Now i have the files where are exported e-mail's. Searching of regular expression, what can get me only the email in Return-Path.
Some content
Return-Path: <email@domain.com>
Some content
This regex should do what you want:
(?=Return-Path:)([^
]*)<([^>]*)>