摘要: public static boolean isURL(String str){ //转换为小写 str = str.toLowerCase(); String regex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //ftp的user@ + "(([0-9]{1,3}\\.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52 阅读全文
posted @ 2013-01-22 18:09 bert.zeng 阅读(11429) 评论(3) 推荐(0)