Package | Description |
---|---|
com.lc.lang | |
com.lc.utils |
Modifier and Type | Method and Description |
---|---|
static <T> Holder<T> |
Holder.of(T value)
新建Holder类,持有指定值,当值为空时抛出空指针异常
|
Modifier and Type | Method and Description |
---|---|
static String |
UReUtil.extractMultiAndDelPre(Pattern pattern,
Holder<String> contentHolder,
String template)
从content中匹配出多个值并根据template生成新的字符串
匹配结束后会删除匹配内容之前的内容(包括匹配内容) 例如: content 2013年5月 pattern (.*?)年(.*?)月 template: $1-$2 return 2013-5 |
static String |
UReUtil.extractMultiAndDelPre(String regex,
Holder<String> contentHolder,
String template)
从content中匹配出多个值并根据template生成新的字符串
例如: content 2013年5月 pattern (.*?)年(.*?)月 template: $1-$2 return 2013-5 |
Copyright © 2020. All rights reserved.