9
Regex không hoạt động trong String.matches ()
Tôi có đoạn mã nhỏ này String[] words = {"{apf","hum_","dkoe","12f"}; for(String s:words) { if(s.matches("[a-z]")) { System.out.println(s); } } Giả sử in dkoe nhưng nó không in gì cả !!