我正在尝试验证有效URL的用户输入字符串。我能够测试包含http://或www的字符串。下面是我的代码:
var urlRegEx = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-]*)?\??(?:[\-\+=&
但是我得到了错误HTTPSConnectionPool(host='gooogle.com', port=443): Max retries exceeded with url: / (Caused bySSLError(SSLCertVerificationError("hostname 'gooogle.com' doesn't match 'www.google.com'"))) 下面是我的代码: import requests
we