AA5262525622222的正则表达式 [英] Regular Expression For AA5262525622222

查看:67
本文介绍了AA5262525622222的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我写AA5262525622222常规功能



im使用

Regex.IsMatch([AZ] {2} \ d {14},AA5262525622222)



Regex.IsMatch([AZ] {2} [1-9] {14},AA5262525622222 )



但它返回false。

Please help me to write Regular Function for AA5262525622222

i m Using
Regex.IsMatch("[A-Z]{2}\d{14}", "AA5262525622222")
or
Regex.IsMatch("[A-Z]{2}[1-9]{14}", "AA5262525622222")

But it Returns false .

推荐答案

尝试:

Try:
[A-Z]{2}\d{13}





如果你打算玩正则表达式,然后获得 Expresso 的副本[ ^ ] - 它是免费的,它检查并生成正则表达式。



If you are going to play with regexes, then get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions.


你应该清楚地说明,我们无法读懂你的想法。试试这个:

You should have stated it clearly, we can't read you mind. try this:
^[A-Z]{2,3}\d{12,13}




这将适用于2到3个主要大写字母,后跟所有数字,总长度为15。


This will work for 2 to 3 leading capital alphabets followed by all digits, total length is 15.


这篇关于AA5262525622222的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆