如何创建REGEX ..? [英] How to create REGEX..?

查看:67
本文介绍了如何创建REGEX ..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人都必须在他们的网站中使用正则表达式验证器(REGEX)....

但是任何人都知道创建REGEX背后的逻辑......?

everybody must have used regular expression validator(REGEX)in their WEBSITES....
but anybody does know the logic behind creating REGEX...?

推荐答案

可能这篇文章会对你有所帮助

轻松学习正则表达式(RegEx) [ ^ ]



谢谢
May be this article will help you
Learn Regular Expressions (RegEx) with Ease[^]

Thanks


查看此页面,清楚解释

http://en.wikipedia.org/wiki/Regular_expression [ ^ ]



除了一个简单的例子:

要验证电子邮件,您需要编写javascript或服务器端代码。但正则表达式使您的任务更容易。如果有变化,那么你只需要更新regularrexpression。

还有一个控件 RegularExpressionValidator [ ^ ]使用正则表达式进行验证。
Check this page, explained clearly
http://en.wikipedia.org/wiki/Regular_expression[^]

Besides a simple example:
To validate a email, you need to write a javascript or server side code. But regular expression makes your task easier. If there's a change then you just need to update regularexpression.
There's also a control RegularExpressionValidator[^] in ASP.NET to do validations using regex.


这篇关于如何创建REGEX ..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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