我有一个字符串,我想测试它是否为以下格式。
exactly seven alphabetical OR numerical characters, followed by a '_', followed by
exactly five alphabetical OR numerical characters, followed by a '_', followed by
exactly seven alphabetical OR numerical characters, followed by a '_', followed by
exactly nine alphabetical OR numerical characters.
No other characters should exist other then the above mentioned characters.
我想要一个函数,如果它与描述匹配则返回 true,如果不匹配则返回 false。
编辑:字母和数字字符可以混合使用。