摘要:
import java.util.regex.*; public class RegPlus{ public static void main(String[] args){ //group(); //reference(); flags(); } //non-capturing groups 非捕 阅读全文
posted @ 2020-04-02 20:52
yxfyg
阅读(125)
评论(0)
推荐(0)
摘要:
import java.util.regex.*; public class RegQuantifiers{ public static void main(String[] args){ greedy(); reluctant(); possessive(); } public static vo 阅读全文
posted @ 2020-04-02 17:42
yxfyg
阅读(170)
评论(0)
推荐(0)
摘要:
import java.io.*; import java.util.regex.*; public class RegEmail{ public static void main(String[] args){ try{ BufferedReader br = new BufferedReader 阅读全文
posted @ 2020-04-02 14:42
yxfyg
阅读(201)
评论(0)
推荐(0)
摘要:
import java.util.regex.*; public class RegGroup{ public static void main(String[] args){ Pattern p = Pattern.compile("([a-z]{2,4})(\\d+)"); Matcher m 阅读全文
posted @ 2020-04-02 12:32
yxfyg
阅读(349)
评论(0)
推荐(0)
摘要:
import java.util.regex.*; public class RegReplace{ public static void main(String[] args){ Pattern p = Pattern.compile("java",Pattern.CASE_INSENSITIVE 阅读全文
posted @ 2020-04-02 11:31
yxfyg
阅读(401)
评论(0)
推荐(0)
摘要:
import java.util.regex.*; public class RegExp{ public static void main(String[] args){ System.out.println("32323232@qq.com".matches("[\\w[.-]]+@[\\w[. 阅读全文
posted @ 2020-04-02 11:14
yxfyg
阅读(175)
评论(0)
推荐(0)
浙公网安备 33010602011771号