postwoman:提取、验证和规范化英国邮政编码

qqdetective77206 69 0 zip 2024-08-25 07:08:04

邮递员Postwoman . validate ( 'foo' ) ; // false Postwoman . validate ( 'PE129PP' ) ; // true Postwoman . validate ( 'PE12 9PP' ) ; // true Postwoman . normalise ( 'pe129pp' ) ; // PE12 9PP Postwoman . match ( 'PE12 9PP; LE4 4DR; PE12 9PP' ) ; // ['PE12 9PP', 'LE4 4DR'] Postwoman . match ( 'PE12 9PP
LE4 4DR
PE12 9PP' ) ; // ['PE12 9PP', 'LE4 4DR'] 邮政编码验证使用正则表达式执行验证。正则表达式针对进行了测试。

用户评论
请输入评论内容
评分:
暂无评论