how can i validate a url in javascript using regular expression

后端 未结 4 823
情歌与酒
情歌与酒 2020-12-10 07:11

i want to validate a textbox who have some url value like blogs address or site adress how can i validate this textbox in js

4条回答
  •  情歌与酒
    2020-12-10 07:53

    Check out the Regular Expression Library, which has a large repository of regular expressions for all kinds of validations. They also provide an online testing tool.

提交回复
热议问题