PHP头条
热点:

PHP正则匹配


PHP 正则匹配 在线等
如 匹配这个input 中的 value

HTML code






------解决方案--------------------
'/------解决方案--------------------
PHP code
[User:root Time:14:58:15 Path:/home/liangdong/php]$ cat preg.php 

EOF;
$nmatches = preg_match('/class="shareIpt j-copyipt" value="(.*)"/iUs', $str, $matches);
echo $matches[1] . PHP_EOL;
?>
[User:root Time:14:58:16 Path:/home/liangdong/php]$ php preg.php 
xxxxxxxxxxxxxxxxxxxxxxx

www.phpzy.comtrue/phprm/52171.htmlTechArticlePHP正则匹配 PHP 正则匹配 在线等 如 匹配这个input 中的 value HTML code ------解决方案-------------------- '/ ------解决方案-------------------- PHP code [User:root Time:14:58:15 Path:/home/liangdong/php]$ cat preg.p...

相关文章

PHP之友评论

今天推荐