我想用另一個表達式來替換文本中所有不敏感短語的出現,其中包含建立的短語。例如: String searchQuery = "word";
String source = "I want find WORD case insensitive, and change fonts of this word";
System.out.println(source.replaceAll("(?i)"
我想的字符串分割成以下 S <- "No. Ok (whatever). If you must. Please try to be careful (shakes head)."
[1] No.
[2] Ok (whatever). If you must.
[3] Please try to be careful (shakes head).
的圖案是各(...)之前第一.。 我熟