【正则】将学生成绩按照“姓名:年龄:生日:成绩”格式输出

mac2022-06-30  103

regex = "([a-zA-z]+:\\d{1,3}:\\d{4}-\\d{2}-\\d[2]:\\d{1,3}(\\.\\d{1,2})?\\|?)+"

验证邮箱格式的正则表达式

String regex = "[a-zA-z][a-zA-Z0-9_\\.]{5,19}@[a-zA-Z-0-9]+\\.(com|cn|net|com.cn)";

转载于:https://www.cnblogs.com/fanren224/p/8457177.html

最新回复(0)