RE: [PHP] preg help ?
| From: | Thoenen, Peter Mr. EPS | Date: | Sun, 29 Sep 2002 00:20:13 +0000 |
| Subject: | RE: [PHP] preg help ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118001@lists.php.net to get a copy of this message | ||
/<INPUT TYPE=HIDDEN NAME="SPIDERSESSION" VALUE="([^"]*)">/ should
work ...
prob. a better way to do this but its functional :)
-Peter
> -----Original Message-----
> From: :B nerdy [mailto:thoa0025@mail.usyd.edu.au]
> Sent: Sunday, September 29, 2002 02:05
> To: php-general@lists.php.net
> Subject: [PHP] preg help ?
>
>
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>