提交数据时,将所有input内的
这个怎么写呢 PHP 分享到:
------解决方案--------------------
$s=str_replace('>'https://www.gxlcms.com/,''https://www.gxlcms.com/,str_replace('
echo $s;------解决方案--------------------
$src='
------解决方案--------------------
------解决方案--------------------
iUs';
$post=$_POST['value'];
preg_match($srchttps://www.gxlcms.com/,$posthttps://www.gxlcms.com/,$v);
print_r($v);
?>
------解决方案--------------------
要是提交数据的时候处理而不是接收数据的时候处理的话,那就得用正则了,
var s=document.getElementById('input_id');
s=s.replace(/(
>+/ighttps://www.gxlcms.com/,"");
做了不区分大小写和多行的处理,看是不是你要的吧。
------解决方案--------------------
preg_match('/"https://www.gxlcms.com/(.*)?.[a-Z]{3https://www.gxlcms.com/,4}"/i'https://www.gxlcms.com/,$input_valuehttps://www.gxlcms.com/,$arr);
echo $arr[0];