Title: Or you might be looking for a single line matchName: Paul DeMarcoDate: 6/28/2005 7:39:25 AMComment: Also if you are looking for a single line match just change the expression to this:
^(([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)|([0-9]+))$

Title: SSName: Paul DeMarcoDate: 6/28/2005 7:29:36 AMComment: You are probably misreading the set brackets. There is a special meaning for the hyphen '-' in this case. It is used as a range operator.
[0-9]
means '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'
not '0', '-', '9'
Short answer: '123-45' is not a real number.