why isn't this regex working?
| From: | Boget, Chris | Date: | Tue, 09 Oct 2001 21:06:28 +0000 |
| Subject: | why isn't this regex working? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70535@lists.php.net to get a copy of this message | ||
Given this line:
$headerDetails[subject] = "Here is my subject - [TradeID 1002660213]";
Why isn't this regex working?
eregi( "\[TradeID ([0-9]+)\]$", trim( $headerDetails[subject] ),
$tradeIDInfo );
echo "TradeID: " . $tradeIDInfo[0] . "<br>\n";
Chris