正则表达式如何匹配""

142 阅读1分钟

正则表达式如何匹配""

不墨迹、直接上代码!!!!

^$
System.out.println(Pattern.compile("^$").matcher("").find());  //true

image.png