正則表達式匹配各類括號內內容

用正則表達式匹配兩個字符中間的文本 String skh ="(?<=\\《)[^\\》]+";//用於匹配《》裏面的文本 String str="但實際上《kajdwdej》孫大偉多";//測試字符串 Pattern pattern=Pattern.compile(skh); Matcher matcher=pattern.matcher(str); boolean is=matcher
相關文章
相關標籤/搜索