如何在asp.net中验证具有一个字符,一个特殊符号和一个数字最小长度的字符的文本框为8 [英] how to validate textbox having one charector one specisal symbol and one numaric minimum lenth of charectors is 8 in asp.net
本文介绍了如何在asp.net中验证具有一个字符,一个特殊符号和一个数字最小长度的字符的文本框为8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi朋友们如何在asp.net中验证具有一个字符1个特殊符号和一个数字最小字符个数的文本框的值为8,所以请帮助我紧急..........
hi friends how to validate textbox having one charector one specisal symbol and one numaric minimum lenth of charectors is 8 in asp.net so pls help me its urgent..........
推荐答案
使用以下Regular Expression
验证您的TextBox.
Hi,
Use the followingRegular Expression
to validate your TextBox.
^(?=.{8,})(?=.*[a-z])(?=.*[@#
%^& + =]).*
%^&+=]).*
--Amit
--Amit
这篇关于如何在asp.net中验证具有一个字符,一个特殊符号和一个数字最小长度的字符的文本框为8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文