Finding one line in a Variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all, 

I have to find and put one line of an html file in a variable. I already
have the entire html file stored in a variable like this:

$myHTML="<html><head>blah blah blah"; - Grabbed using cURL

The particular line I want will *always* contain the string
"the_identifying_string"

So the line itself (the line i want to get into a var) would look like
this:

<form method="post" action="blah.php" name="the_identifying_string"
blah..>

How can I get that entire line?

many thanks, im sure your all bored of my regex woes heh.. but thanks,
it's appreciated..
-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux