我需要一个正则表达式来验证一个 Web 表单字段,该字段应包含一个asdot
符号中的 AS 编号,如RFC 5396中所述:
阿斯多特
refers to a syntax scheme of representing AS number values less than 65536 using asplain notation and representing AS number values equal to or greater than 65536 using asdot+ notation. Using asdot notation, an AS number of value 65526 would be represented as the string "65526" and an AS number of value 65546 would be represented as the string "1.10".
我想将Javascript RegExp 对象和 Java EE javax.validation.constraints.Pattern与正则表达式一起使用。