Checking for a valid url using Javascript Regular Expressions

前端 未结 2 1493
情深已故
情深已故 2020-12-17 04:30

What is the expression I should use in order to check for a valid url in javascript?

2条回答
  •  难免孤独
    2020-12-17 05:17

    Take a look at this complete regular expression for URLs that has been generated automatically based on the RFC 1738.

提交回复
热议问题