I am having a really simple problem with regular expressions and
Rails. I need to validate that input is a number or only digits. I
:with => /\d*/,
:message => “PO Box must be a number
only. Remove all text.”
however, rails is letting anything be entered. i am getting other
regular expressions like /a/ to work but for some reason not \d* or \d
or [0-9]* or [0-9].
Can anyone help?