首頁  >  文章  >  後端開發  >  求个PHP正则的有关问题

求个PHP正则的有关问题

WBOY
WBOY原創
2016-06-13 11:10:25946瀏覽

求个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 />

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


------解决方案--------------------
$s=<<preg_match_all('/value="(.*)"/isU',$s,$m);
print_r($m[1]);
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn