正則表達式判斷是否包含一個字符串

用java正則表達式檢測字符串中含有某字符方法: public class Test { public static void main(String[] args) { String str="Hello World"; //待判斷的字符串 String reg=".*ll.*"; //判斷字符串中是否含有ll System.out
相關文章
相關標籤/搜索