Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a Validation expression which will allow me to enter integer and "*" as a character in the SSN Text box? Can anybody help me here?
Posted

use regular expression:

!Regex.IsMatch(textbox.Trim(), @"^-{0,1}\d*\*{0,1}\d+$")
 
Share this answer
 
Try This
in Regularexpression
"^([0-9*])$"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900