网络编程 发布日期:2025/11/7 浏览次数:1
比较简单的
$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>