document parsing
| From: | Adam Montague | Date: | Fri, 20 Oct 2000 13:25:37 +0000 |
| Subject: | document parsing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21380@lists.php.net to get a copy of this message | ||
Hi
Say I have a big document I want to parse and just save all the fax numbers
from it to a file. What function do I need to use? I have it so it reads
the file, and does an eregi("fax: [0-9]{3}-[0-9]{4}", $contents, $faxes);
But that only grabs the first number in the doc, how do I get it to save
them all as an array?
Thanks
Adam Montague
Systems Administrator
amontague@WorldWithoutWire.com <mailto:amontague@WorldWithoutWire.com>
phone : 519.725.0606
toll-free : 877.725.0606
fax : 519.725.1430
<http://worldwithoutwire.com/>