CreateUserWizard.PasswordRegularExpression
Note: This property is new in the .NET Framework version 2.0.
Gets or sets a regular expression used to validate the provided password.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
<strong>Visual Basic (Declaration)</strong>
<span style="background-color: #dbdbdb">Public Overridable Property PasswordRegularExpression As String</span> <strong>Visual Basic (Usage)</strong>
<span style="background-color: #dbdbdb">Dim instance As CreateUserWizard
Dim value As String
value = instance.PasswordRegularExpression
instance.PasswordRegularExpression = value</span>
Remarks
| Example
The following code example uses the PasswordRegularExpression property to define a regular expression that checks passwords to ensure that they:
If the password entered by the user does not meet these criteria, the text contained in the PasswordRegularExpressionErrorMessage property is displayed to the user. |
passwordregularexpression='@\"(?=.{7,})(?=(.*d){1,})(?=(.*W){1,})'
|
LINKs
http://www.regular-expressions.info/http://www.4guysfromrolla.com/webtech/120400-1.shtmlÂ
Home