I don’t know if the questioner is just referring to this website? If it is this URL, it can match the part starting with 'http' and ending with '/'.
Personally, I think what the questioner wants to express is how to distinguish it under normal circumstances (without the special character ‘/’ at the end)? I think the matching ending can be solved with alphanumeric or specific suffix com/cn (this method cannot be completely covered by enumeration)
The poster did not describe clearly what kind of URL he wanted~ If you only want the non-Chinese part, you can write like this: 'https?://[^/]+?/'
二
Owner, you need to know that URLs can contain Chinese characters. The example you gave: http://www.w3schools.com/学习HTML技术,做一个有趣的网站 can completely be used as a URL. So, you still haven’t described clearly what you want?
I don’t know if the questioner is just referring to this website? If it is this URL, it can match the part starting with 'http' and ending with '/'.
Personally, I think what the questioner wants to express is how to distinguish it under normal circumstances (without the special character ‘/’ at the end)?
I think the matching ending can be solved with alphanumeric or specific suffix com/cn (this method cannot be completely covered by enumeration)
The poster did not describe clearly what kind of URL he wanted~
If you only want the non-Chinese part, you can write like this:
'https?://[^/]+?/'
二
Owner, you need to know that URLs can contain Chinese characters. The example you gave:
http://www.w3schools.com/学习HTML技术,做一个有趣的网站
can completely be used as a URL.
So, you still haven’t described clearly what you want?