简体   繁体   English

正则表达式:URL 匹配无法正常工作

[英]Regex: URL matching doesn't work properly

I use this regex:我使用这个正则表达式:

<(https:\\/\\/[a-zA-Z\\-]+\\.mydomain\\.com/[a-z0-9\\/\\?\\.\\,_=&]+)>; rel=\"next\"

For this one is OK:对于这个是可以的:

<https://api.mydomain.com/v1/feeds?page=1559289570000>; rel=\"next\"

For this one is failed (no result):对于这个失败(没有结果):

<https://api.mydomain.com/v1/feeds/AS7ShjYhsjYHJ89w/likes?page=49771>; rel=\"next\"

Do you have any suggestions guys?你们有什么建议吗? Thank you very much!非常感谢!

You did forget AZ in [a-zA-Z0-9\\/\\?\\.\\,_=&]+您确实忘记了[a-zA-Z0-9\\/\\?\\.\\,_=&]+中的AZ

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM