Re: Parsing HTML files

From: Date: Fri, 10 Sep 2004 10:58:58 +0000
Subject: Re: Parsing HTML files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196292@lists.php.net to get a copy of this message
No easy way of doing it, regex somthing like: $id = preg_replace("/.*<input.*name=\"id\" value=\"[0-9]+\" \/>/", $1, $string); where $string is a line from your input'd HTML page Abdul-Wahid On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson <nick@stylesheet.org> wrote: > Hi all, > > I was wondering if any classes/functions could help me with this little > challenge, (im hopeless at regex ;-) > > <input type="hidden" name="id" value="593" /> > > I want to extract the value of 'id' from a webpage. Any simple way to do > this or am I down to sweating of the regex functions? > > Much thanks.... > -- > Nick W > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#196292) next »