我正在尝试使用正则表达式解析电子邮件回复。我的回复看起来像:
This is my response.
Some text here
?
?
From: Lastname, Firstname
Sent: Saturday, January 05, 2013 7:37 PM
To: Lastname, Firstname
Subject: Some Subject
?
Some Text
我有兴趣将所有内容解析到第一个?我尝试过将单行模式与$response =~ /^(.*)\?\n/s;
. 但这会让我回到最后?任何帮助,将不胜感激。