-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一道腾讯手写题,如何判断 url 中只包含 qq.com #88
Comments
最后一个结果是false啊~ |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例如:
解答:正则
这个正则很简单,包含
.qq.com
就可以,但是有一种情况,如果域名不是包含qq.com
而仅仅是参数后面包含了qq.com
怎么办?例如http://www.baidu.com?redirect=http://www.qq.com/a
如何排除这种情况?
若有收获,就点个赞吧
The text was updated successfully, but these errors were encountered: