RegexHelperIsLicensePlate 方法

验证字符串是否为有效的中国大陆车牌号。

Definition

命名空间: Suresking.Utility
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
C#
public static bool IsLicensePlate(
	string input
)

参数

input  String
要验证的字符串。

返回值

Boolean
如果格式符合车牌号格式,返回 true;否则返回 false。

异常

ArgumentNullExceptioninput 为 null。

参见