Re: search a text file
| From: | CC Zona | Date: | Mon, 12 Mar 2001 19:16:25 +0000 |
| Subject: | Re: search a text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43519@lists.php.net to get a copy of this message | ||
In article
<309828428FB7D411A53C00508BB18D261CC6DA@triton.triton-network.com>,
pbenoit@triton-network.com (Peter Benoit) wrote:
> I've got a bit of a task where I need to poll a text file for several lines
> of text which is buried deep within the file. These lines change each day,
> but the text surrounding them do not.
>
> Is it possible to extract these lines of information based on the text
> surrounding them?
Sure. preg_match() would be one way.
--
CC