Introduction
Here we have to discuss the Regular expression which accept only numbers and it might be also decimal and also the comma inbetween numbers.. Technologies:
Regular Expression
Implementation
Valid Format: 123-45-6789
ValidationExpression="^[+-]?(?:\d+\,?\d*|\d*\.?\d+)[\r\n]*$">
I have placed the html code place it on your new Default.aspx and runt the project and make sure it will accept only numbers
Match Case : Only numbers , Decimal numbers , (,) inbetween number
Ex: 5425 52.210 54,254,25
Non- Match:
247Mani Rd245 Thank you Venkat
|