public class RegexResourceUtil extends Object
| Constructor and Description |
|---|
RegexResourceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static String[] |
matcher(Pattern pattern,
String text) |
static String |
matcher(String rule,
String text) |
static Pattern |
readModel(String fileName)
获取Pattern
|
static void |
writeModel(Object p,
String path)
修改 Model
|
public static Pattern readModel(String fileName) throws Exception
fileName - 文件名称Exception - 异常public static void writeModel(Object p, String path) throws Exception
p - 正则对象path - 文件保存路径Exception - 异常public static String[] matcher(Pattern pattern, String text) throws Exception
ExceptionCopyright © 2021. All rights reserved.