| 程序包 | 说明 |
|---|---|
| com.github.jarvisframework.tool.core.lang | |
| com.github.jarvisframework.tool.core.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Holder<T> |
Holder.of(T value)
新建Holder类,持有指定值,当值为空时抛出空指针异常
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
RegexUtils.extractMultiAndDelPre(Pattern pattern,
Holder<CharSequence> contentHolder,
String template)
从content中匹配出多个值并根据template生成新的字符串
匹配结束后会删除匹配内容之前的内容(包括匹配内容) 例如: content 2013年5月 pattern (.*?) |
static String |
RegexUtils.extractMultiAndDelPre(String regex,
Holder<CharSequence> contentHolder,
String template)
从content中匹配出多个值并根据template生成新的字符串
例如: content 2013年5月 pattern (.*?) |
Copyright © 2020. All rights reserved.