這個PHP函數工作得很好:PHP的preg_match導致
if (preg_match ("/<(\[email protected]\S+\w)>.*\n?.*55[0-9]/i",$body,$match)) {
echo "found!";
}
在
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
[email protected]
SMTP error from remote mail server after RCPT TO:<[email protected]>:
host mx3.hotmail.com [65.54.188.72]: 550 Requested action not taken:
mailbox unavailable
但是,如果使用相同的PHP函數在這種情況下:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
[email protected]
SMTP error from remote mail server after end of data:
host d.mx.mail.yahoo.com [209.191.88.254]: 554 delivery error:
dd This user doesn't have a yahoo.com account ([email protected]) [0] - mta1010.mail.mud.yahoo.com
的preg_match
功能沒有給出任何結果。我究竟做錯了什麼?
我都試過了,但都沒有成功。 – Sergio 2010-12-01 16:29:49
好的,你能明確告訴我們你想要匹配什麼嗎? – 2010-12-01 16:34:16