Fri Apr 08, 2011 10:47 pm
<%
' username
Dim username
Dim regularExpressions = New Regex
' regular expression .
With regularExpressions
.Pattern = "^[a-zA-Z0-9]{4,10}$"
.IgnoreCase = True
.Global = True
End With
username = "asi323"
show test against pattern.
Response.Write("asi323 tested with pattern ^[a-zA-Z0-9]{3,8}$ :" & regularExpressions.test(username))
%>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.