0
我有一個正則表達式命令的問題:用正則表達式分隔符
text="blue:
allocatable
allocate
assign" //it has delimiters (new lines)
String patternblue = ".*blue.*";
boolean isMatchblue = Pattern.matches(patternblue, text.toString());
System.out.println(isMatchblue);
給人「假」,會發生什麼?
我檢查了論壇上的其他帖子,但我沒有得到它的工作與。*?也不?的