I am new to perl, and I need to validate a number that is entered. It needs to be in this format, ###.#. It can have up to 3 digits before the decimal and one after.
I am trying: /\d\d\d\.\d/ but that doesn't seem to work. It allows 1234, and 123.45 through.
Could someone please assist me. Thanks!
I am trying: /\d\d\d\.\d/ but that doesn't seem to work. It allows 1234, and 123.45 through.
Could someone please assist me. Thanks!