首页  >  文章  >  后端开发  >  求个PHP正则的有关问题

求个PHP正则的有关问题

WBOY
WBOY原创
2016-06-13 11:10:25944浏览

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