HTML:
<input name="__CUTE" id="__CUTE" value="/dfdjksfhnvdj9326r" type="hidden">
If need the entire page I will update the post
The only thing I know is that its needs to be with preg_match:
preg_match('/value="([^"]+)"/'...
HTML:
<input name="__CUTE" id="__CUTE" value="/dfdjksfhnvdj9326r" type="hidden">
If need the entire page I will update the post
The only thing I know is that its needs to be with preg_match:
preg_match('/value="([^"]+)"/'...
I would use DOMDocument for this but since you want to use a regexp expression:
$res = preg_match('/<input name="__CUTE" (.*?) value="([^"]+)"/s', $html, $matches);
And get the value of the second match only.
In case you want to use DOMDocument:
$dom = new DomDocument();
$dom->loadHTML($html);
$cute = $dom->getElementById("__CUTE");
echo $cute->getAttribute('value');