JAVA中, 正则表达式匹配以 .png结尾该怎么写?1、正则表达式这么写String s = "img.png"String regex = ".*\.png"System.out.println(s.matches(regex))true 2、2023-05-01Python420
JAVA中, 正则表达式匹配以 .png结尾该怎么写?1、正则表达式这么写String s = "img.png"String regex = ".*\.png"System.out.println(s.matches(regex))true 2、2023-03-10Python170