import java.util.Scanner; import java.util.regex.Pattern; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); String[] split = s.split(";"); //正则表达式 String ruleString1 = "[ADWS][0-9]{1,2}"; Pattern pattern = ...