[英]How to match a URL at end of a line with regex
我必须找到一个模式来只匹配这样的列表的 URL:
one | two | three | four | http://www.site/whatever-the-site-uses
one | two | three | four | http://www.site/whatever-the-site-uses
one | two | three | four | http://www.site/whatever-the-site-uses
我需要在 SINGLE GROUP 中获取整个 http 或 https,但我找不到合适的模式
有人能帮我吗? 到目前为止,我有\\|(.*?)/$
,但结果类似于
| two | three | four | http://www.site/whatever-the-site-uses
我理解你对吗? 从最后一个 "| https://" 捕获以https凝视的组? 到行尾
是这个吗?
/\|\ (https?\:\/\/.*)$/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.