PHP 正则匹配 在线等 如 匹配这个input 中的 value<input type="text" class="shareIpt j-copyipt" value="xxxxxxxxxxxxxxxxxxxxxxx"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 '/<input.*? class="shareIpt j-copyipt" value="([^\"]+)"/' [User:root Time:14:58:15 Path:/home/liangdong/php]$ cat preg.php <?php$str = <<<EOF<input type="text" class="shareIpt j-copyipt" value="xxxxxxxxxxxxxxxxxxxxxxx">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 php网址传参问题 学那个C语言好呢,还是学VB合算?? 文件包含方式 模板引擎supertpl与smarty的区别 php有没有像ASP那样的Application对象或变量? 高分求助,高手请进,再现等待 关于传递参数的问题?? 谁有去除广告的办法?100分 请高手们帮忙,我现在数据库连不起来了,小弟先谢了。 为什么我定义的class在创建实例的时候提示这种错误呢(Fatal error: Call to unsupported or undefined function pagination() ) php 正则匹配 图片问题 求 php管理实现详细操作日志的制作思想!!
<?php
$str = <<<EOF
<input type="text" class="shareIpt j-copyipt" value="xxxxxxxxxxxxxxxxxxxxxxx">
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