dollar amount or percent/rate
This will verify input is non-zero and either a valid dollar amount ($3, $3.4, $3.40, $.4, $.40) or a valid percent/rate (2%, 2.5%, .5%) with up to four decimal places. Could probably be more efficient with the lookaheads.
Submitted by Keith Freeman - 9 years ago