>백엔드 개발 >PHP 튜토리얼 > 求个PHP正则的有关问题

求个PHP正则的有关问题

WBOY
WBOY원래의
2016-06-13 12:57:24696검색

求个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으로 문의하세요.