|
Posted by gosha bine on 08/27/07 14:52
On 27.08.2007 15:31 innamorato.pazzo@gmail.com wrote:
> Hi!
> I would like to create a php script that read a txt file and filter it
> with 2 keywords, first keyword deifne the start and the second one the
> end of the txt to read.
> And then give the output extracted.
>
> Expter of the group, could you help me?
> thanks!
>
preg_match('~start(.*?)end~s',
file_get_contents('filename'),
$matches
);
the output will be in $matches[1]
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
Navigation:
[Reply to this message]
|