I am working on my web development project where I encountered this error. The regex pattern below here is what I am using for my project. Also there is a list of invalid URLs that it cannot check in.
(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-=?@$&!\-\/#/()]/?
Invalid URL:
http://a.b-c.de
http://a.b-.co
http://a.b--c.de/
http://-error-.invalid/
http:://www.com
www.com
W.ww.example.net
www.example
I'm not able to invalidate the above list of URL. Can anyone help me to sort out this issue.
Aucun commentaire:
Enregistrer un commentaire