求个PHP正则的有关问题

WBOY
Release: 2016-06-13 11:10:25
Original
950 people have browsed it

求个PHP正则的问题。

<br /><div class="aspNetHidden"><br /><input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /><br /><input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /><br /><input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" /><br /><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNjM0NjcwNTY5DxYCHgdzZWxUaW1lBRMyMDEzLTAxLTA2IDIyOjAwOjAwFgJmD2QWAgIDD2QWCAIHDzwrAAoBAA8WAh4CU0QWAQYAgJDZdLnPiGRkAgkPEGRkFgFmZAILDxBkZBYBZmQCPQ9kFghmDw8WAh4EVGV4dAUa5YWN6LS5IGlQaG9uZSDova/ku7bmjpLlkI1kZAIBDw8WAh8CBRQoMjAxMy0wMS0wNiAyMuaXtu+8iWRkAgIPEGRkFgFmZAIDD2QWGAIBDw9kFgIeBXN0eWxlBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAgMPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAgUPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAgcPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAgkPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAgsPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAg0PD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAg8PD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAhEPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAhMPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAhUPD2QWAh8DBRJ2aXNpYmlsaXR5OmhpZGRlbjtkAhcPD2QWAh8DBRN2aXNpYmlsaXR5OnZpc2libGU7ZGQcFwRrWowABf9DTpetIN8L2PcEzex9N//hvpdD6iDFyA==" /><br /></div><br />
Copy after login

有一段HTML代码,我想获取各个 value值。。请问用正则怎么取?


------解决方案--------------------
$s=<<preg_match_all('/value="(.*)"/isU',$s,$m);
print_r($m[1]);
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template