Finding one line in a Variable?

From: Date: Mon, 11 Oct 2004 07:45:17 +0000
Subject: Finding one line in a Variable?
Groups: php.general 
Request: Send a blank email to php-general+get-199151@lists.php.net to get a copy of this message
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

« previous php.general (#199151) next »