preg help ?
| From: | :B nerdy | Date: | Sun, 29 Sep 2002 00:04:57 +0000 |
| Subject: | preg help ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117999@lists.php.net to get a copy of this message | ||
ive got a html document with the following string in it:
<INPUT TYPE=HIDDEN NAME="SPIDERSESSION" VALUE="\oiXESASZC?~adQXZDQ?_">
what i want to do is get the string which corresponds to value. so that is
\oiXESASZC?~adQXZDQ?_
ive used
preg_match_all ('<INPUT TYPE=HIDDEN NAME="SPIDERSESSION"
VALUE="(.*)">',
$contents,$out, PREG_PATTERN_ORDER);
but it returns the whole document :(
a little help? cheers