I want my ExtJS textfield to allow only numbers and decimals (Both positve and negative) .I need a regex to allow an integer or decimal number which can be positive or negative . Should match -
1) 123
2) 123.23
3) -123
4) -123.23
Should not match for
1) --123
2) -2323-
3) 23.23.23
4) 34..34