(编辑:jimmy 日期: 2024/11/15 浏览:2)
比较简单的
$str = ''; $isMatched = preg_match('/^^((https|http|ftp|rtsp|mms)"htmlcode">^((https"htmlcode"><script type="text/javascript"> function IsURL(urlString) { regExp = /^((https"is a url"; else return "not a url"; } url = ""; alert(IsURL(url)); </script>