正则表达式语法 [英] regular expression syntax

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

问题描述




您能否告诉我验证Excel所需的正则表达式语法

Cell Reference。

例如A1,B1200,IV54000等


感谢

Tim

解决方案

^([a-zA-Z] +)(\d +)





注意:这不接受R1C1-参考!


Niki


Tim Marsden < TM@UK.COM>写在

新闻:************* @ TK2MSFTNGP10.phx.gbl ...


<你能告诉我验证Excel
Cell Reference所需的正则表达式语法吗。
例如A1,B1200,IV54000等

感谢



^([a-zA- Z] +)(\d +)

Hi,

Can you tell me the regular expression syntax needed to validate an Excel
Cell Reference.
e.g. A1, B1200, IV54000 etc

Thank
Tim

解决方案

^([a-zA-Z]+)(\d+)




Note: this will not accept R1C1-references!

Niki

"Tim Marsden" <TM@UK.COM> wrote in
news:Of*************@TK2MSFTNGP10.phx.gbl...

Hi,

Can you tell me the regular expression syntax needed to validate an Excel
Cell Reference.
e.g. A1, B1200, IV54000 etc

Thank
Tim



^([a-zA-Z]+)(\d+)


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

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