【发布时间】:2020-10-18 23:39:12
【问题描述】:
有人可以帮助进行 url 解析拆分吗?
我有如下网址 -
实际 - https://www.facebook.com/group.php/gid=12345
期待 - facebook /group.php/gid=12345
实际 - https://www.Test.this.domain/testPath/
期待 - https wwwtestthisdomain testpath
【问题讨论】:
-
这能回答你的问题吗? How to split a string in Java
-
它是如何工作的?第二个有 https 和 www 结果,但第一个只有“facebook”
标签: java url-parsing