Dim
reg
As
Regex
=
New
Regex(
"
^[a-zA-Z'.]{1,40}$
"
)
Response.Write(reg.IsMatch(name))
' '
If ((Regex.IsMatch(name, " ^[a-zA-Z'.]{1,40}$ " )) = False ) Then
....
End If
Response.Write(reg.IsMatch(name))
' '
If ((Regex.IsMatch(name, " ^[a-zA-Z'.]{1,40}$ " )) = False ) Then
....
End If