Hi all,
As part of a program I am writing, I have a Perl regular expression which searches the first 450 characters of an email body for an email address. Every time the code gets to a certain email, it just sits and hangs, not doing anything. Even if I set maximum execution time to unlimited, it never continues. I'm not very experienced with Perl Regex in PHP, but I'm guessing there's some little bug or something that I'm missing.
Here is the regular expression I'm using:
$regex = '#[\'"()<>\s]{1}(\w(?:[.]\w)@(?:[\w][-\w][\w].)+[a-zA-Z]{2,9})[\'"()<>\s]{1}#';
And here's the text that it searches in:
------ Failed Recipients ------
<crhodes@busey.com>: Requested action not taken: mailbox unavailable. [SMTP Error Code 550]
-------- Returned Mail --------
Received: from unknown(216.216.70.13) by chafovs1.busey.com via csmap
id 5b2ae7b6_eae4_11d8_98d2_00304811fe48_28606;
Tue, 10 Aug 2004 10:45:51 -0500 (CDT)
Received: (from httpd@localhost)
by ns2.zcreative.ws (8.11.6/8.11.6) id i7AFIxs11576;
Tue, 10 Aug 2004 09:18:59 -0600
Date: Tue, 10 Aug
If anyone has any ideas on why this bombs, I'd greatly appreciate it. It's been driving me nuts for several weeks.