且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检测并缩短字符串中的所有URL

更新时间:2023-02-22 22:21:50

使用 appendReplacement appendTail 。请参阅Java教程中的示例另一个示例更接近您要做的事情。

Use appendReplacement and appendTail. See example in the Java tutorial and another example closer to what you are trying to do.