小编bus*_*edg的帖子

使用Java在字符串中的数字周围插入星号

在使用Java出现在字符串中的任何数字之前和之后添加星号的最佳方法是什么?请注意,出现连接的多个数字将被解释为单个数字.

例如,将此转换为:

0this 1is02 an example33 string44
Run Code Online (Sandbox Code Playgroud)

对此:

*0*this *1*is*02* an example*33* string*44*
Run Code Online (Sandbox Code Playgroud)

java

0
推荐指数
1
解决办法
74
查看次数

标签 统计

java ×1