RE: [PHP] search a text file
| From: | Peter Benoit | Date: | Mon, 12 Mar 2001 19:23:02 +0000 |
| Subject: | RE: [PHP] search a text file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43520@lists.php.net to get a copy of this message | ||
OK, I'm a little new to this, else I would have known that. Any examples
out there I could use/modify?
thanks,
pete
-----Original Message-----
From: CC Zona [mailto:cczona@nospam.invalid]
Sent: Monday, March 12, 2001 2:16 PM
To: php-general@lists.php.net
Subject: Re: [PHP] search a text file
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net