[ASP] regular matching URL

Time:2021-10-13
Copy codeThe code is as follows:
Function IsValidUrl(str) 
 Dim regEx 
 Set regEx = New RegExp 
 regEx.Pattern = “http(s)?://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?” 
 IsValidUrl = regEx.Test(str) 
End Function 

Recommended Today

Webpack build Vue project

Precautions for webpack building Vue project Download Plugin and loader Write configuration item Write component Introduction component Import dependency directory structure |–>config|—–>webpack.base.js|—–>webpack.dev.js|—–>webpack.pro.js|–>src|—–>HTML (htmlwebpackplugin rendered here)|———>index.html|—–>router|———>index.js|—–>views|———>Home.vue|———>Login.vue|—–>App.vue|—–>main.js|–>node_modules|–>package.jsonDependent package all:package.json { “scripts”: { “dev”: “webpack-dev-server –config config/webpack.dev.js” }, “devDependencies”: { “HTML webpack plugin”: “^ 4.2.0”, // mixed with HTML “vue”: “^2.6.11”, “vue-loader”: “^15.9.1”, “vue-router”: “^3.1.6”, “vue-template-compiler”: “^2.6.11”, “webpack”: […]