开发者

Regular Expression for Wright Express?

开发者 https://www.devze.com 2023-01-05 02:51 出处:网络
There is plenty of info available about regular expressions for credit card numbers (for example http://www.regular-expressions.info/creditcard.html). However I have not been able to find info on the

There is plenty of info available about regular expressions for credit card numbers (for example http://www.regular-expressions.info/creditcard.html). However I have not been able to find info on the regular expression (or any other description) for the number used by Wright Express (which I think is some kind of fuel card). 开发者_开发问答Does anyone know what it is?


Based on their examples on their website, such a number looks like 0400 00 123456 7. To check this format with a regular expression, you could use

"\d{4} \d{2} \d{6} \d"
0

精彩评论

暂无评论...
验证码 换一张
取 消