This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to Validate a String for decimal number in java script ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to Validate a String for decimal number in java script ?" Watch "how to Validate a String for decimal number in java script ?" New topic
Author

how to Validate a String for decimal number in java script ?

chiranjib das
Greenhorn

Joined: Aug 04, 2003
Posts: 3
Can anybody provide me a java code or java script code for validating a String for decimal number ? Basically, There is a String for Money related stuff , i want to validate it whether its a decimal number or not
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
hint: regular expression or indexOf

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Validate a String for decimal number in java script ?
 
It's not a secret anymore!