标签:ring class port util ace 表达式 grep com color
import java.util.regex.*; public class RegReplace{ public static void main(String[] args){ Pattern p = Pattern.compile("java",Pattern.CASE_INSENSITIVE); Matcher m = p.matcher("jaVa JAva I love JAVa"); System.out.println(m.replaceAll("java")); } }
标签:ring class port util ace 表达式 grep com color
原文地址:https://www.cnblogs.com/yxfyg/p/12618510.html