mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix buf
This commit is contained in:
@@ -142,6 +142,14 @@ public class ReUtilTest {
|
||||
Assert.assertEquals("我有个\\$符号\\{\\}", escape);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void escapeTest2(){
|
||||
String str = "a[bbbc";
|
||||
String re = "[";
|
||||
final String s = ReUtil.get(ReUtil.escape(re), str, 0);
|
||||
Assert.assertEquals("[", s);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getAllGroupsTest() {
|
||||
//转义给定字符串,为正则相关的特殊符号转义
|
||||
|
Reference in New Issue
Block a user