I want to validate a number field with regular expression -
like
REGULAR_EXPRESSION_VALUE = ?
validates :current, allow_blank: true, format: {with: REGULAR_EXPRESSION_VALUE}
which excepts postive or negative number and also floating point numbers
Examples
10 (Except)
10.15 (Except)
-10 (Except)
-10.15 (Except)
Test (Not Except)