mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix comment
This commit is contained in:
parent
4123efcad9
commit
3608cbb20f
@ -3722,7 +3722,6 @@ public class CharSequenceUtil {
|
|||||||
/**
|
/**
|
||||||
* 替换所有正则匹配的文本,并使用自定义函数决定如何替换<br>
|
* 替换所有正则匹配的文本,并使用自定义函数决定如何替换<br>
|
||||||
* replaceFun可以通过{@link Matcher}提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。
|
* replaceFun可以通过{@link Matcher}提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。
|
||||||
*
|
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* replace(this.content, "(\\d+)", parameters -> "-" + parameters.group(1) + "-")
|
* replace(this.content, "(\\d+)", parameters -> "-" + parameters.group(1) + "-")
|
||||||
* // 结果为:"ZZZaaabbbccc中文-1234-"
|
* // 结果为:"ZZZaaabbbccc中文-1234-"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user