locked
Regular Expression for a float in JavaScript RRS feed

  • Question

  • Hi All,

    I am trying to find a regular expression to find a float value in a text box using javascript. I am using:

    /\d*+(\.\d+)?$/

    but this is not working, it is returning false for both decimals and floats.

    I would appreciate if you can help me figure out correct regular expression for this task.

    Thanks,
    Sid

    Wednesday, November 17, 2010 8:46 PM

Answers