I have Regex, it's working as expected in C#, But not working in JavaScript.
if (/\d+(\.\d{0,5})?/.test(data) == false){
... //Not going in if 1.23456789
}
C# Code:
[RegularExpression(@"\d+(\.\d{0,5})?", ErrorMessage = "Invalid Value; Maximum 5 places after decimal")]