함수 is url()

Jmnote (토론 | 기여)님의 2015년 7월 1일 (수) 11:21 판
is_url()

1 PHP

function is_url($url) { return preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$url);
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}