正则表达式:(http(s)?:\/\/)?(www\.)?((.+?\.com)\/?(\?[^\?]+)?$|([^\s\:]+\.(net|cn|org|top|wiki|edu|gov)))(\/[^\s]*)*
输入字符串:This is a url test olc check this url:chinadaily.com.cn/WS5eb90325a310a8b241154d2c.html. This is our dailu schedule government test connetion.This is a url test olc check this url:http://www.chinadaily.com.cn/a/202005/12/WS5eb90325a310a8b241154d2c.html. This is our dailu schedule government test connetion.
请问我不希望url结尾的.
被匹配到,应该怎么修改这个正则?
最后那里,排除内容中,加上不想要的:
[^\s]
=>[^\s.]