How do I check if a given number is a valid number?

This example shows you how to check if a given number is a valid number.
package net.javaiq.examples.math;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * This class demonstrates on how to check if a given number is a valid number. 
 * @author JavaIQ.net
 * Creation Date Dec 10, 2010
 */
public class NumberValidator {
    public NumberValidator() {
    }

    /** isNumeric: Validate a number using Java regex.
     * This method checks if the input string contains all numeric characters.
     * @param number String. Number to validate
     * @return boolean: true if the input is all numeric, false otherwise.
     */
    public static boolean isNumeric(String number) {
        boolean isValid = false;

        /*Number: A numeric value will have following format:
             ^[-+]?: Starts with an optional "+" or "-" sign.
             [0-9]*: May have one or more digits.
            \\.?</STRONG> : May contain an optional "." (decimal point) character.
            [0-9]+$</STRONG> : ends with numeric digit.
        */

        String expression = "^[-+]?[0-9]*\\.?[0-9]+$";
        CharSequence inputStr = number;
        Pattern pattern = Pattern.compile(expression);
        Matcher matcher = pattern.matcher(inputStr);
        if (matcher.matches()) {
            isValid = true;
        }
        return isValid;
    }

    /**
     * Method to test other methods in the class with sample inputs
     * @param args
     */
    public static void main(String[] args) {

    }
}