import java.util.*;
import java.io.*;
public class UseRegularExpression {
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
System.out.println("abcdefgabcabc".replaceAll(".bc","###"));
String phoneEL = "[0-9]{4}-[0-9]{6}";
String urlEL = "<a.+href*=*['\"]?.*?['\"]?.*?>";
String emailEL = "^[_a-z0-9-]+(.[_a-z0-9-]+)*" + "@[a-z0-9-]+([.][a-z0-9-]+)*$";
System.out.print("请输入手机号: ");
String input = reader.readLine();
if (input.matches(phoneEL)) {
System.out.println("格式正确");
} else {
System.out.println("格式错误");
}
System.out.print("输入href标签: ");
input = reader.readLine();
if (input.matches(urlEL)) {
System.out.println("格式正确");
} else {
System.out.println("格式错误");
}
System.out.print("输入电子邮件: ");
input = reader.readLine();
if (input.matches(emailEL)) {
System.out.println("格式正确");
} else {
System.out.println("格式错误");
}
}
}