需要一个正则表达式 [英] Need a regular expression

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

问题描述

对于那些理解正则表达式的人来说,这非常简单。



我需要一个匹配7个数字后跟1个Alpha的数字。 (C#)

解决方案
检查这些,你可以建立自己新的表达

Expresso - 用于构建和测试正则表达式的工具 [ ^ ]

Expresso - 30分钟正则表达式教程 [ ^ ]

它应该是这样的:

^ \d {7} \w 



This is pretty simple one for those of you who understand Regular Expressions.

I need one that will match exactly 7 digits followed by 1 Alpha. (C#)

解决方案

Check these, you could build yourself new expressions.
Expresso - A Tool for Building and Testing Regular Expressions[^]
Expresso - The 30 Minute Regex Tutorial[^]


It should be something like:

"^\d{7}\w


"


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

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