公告
财富商城
积分规则
提问
发文
2019-07-13 17:25发布
Explosion°爆炸
i need a url regex which validates the url string without http://www. or https://www.
http://www.
https://www.
any ideas?
It would probably be a good idea to keep the www's intact in order to preserve the sub-domain. A regex pattern like this:
www
^([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$
would match a URL that is not prefixed by a protocol (http://,https://,ftp://,etc).
http://
https://
ftp://
最多设置5个标签!
It would probably be a good idea to keep the
www
's intact in order to preserve the sub-domain. A regex pattern like this:^([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$
would match a URL that is not prefixed by a protocol (
http://
,https://
,ftp://
,etc).