Discuss / Java / 两种写法都可以测试成功?

两种写法都可以测试成功?

Topic source

Loading...

#1 Created at ... [Delete] [Delete and Lock User]

不是说特殊字符要加\么

 String re = "\\d{3,4}\\-\\d{7,8}";
 String re = "\\d{3,4}-\\d{7,8}";

  • 1

Reply