jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes extract decimal number from alphanumeric string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "extract decimal number from alphanumeric string" Watch "extract decimal number from alphanumeric string" New topic
Author

extract decimal number from alphanumeric string

ram baveja
Greenhorn

Joined: Apr 30, 2012
Posts: 2

I want to extract decimal number 265.12 or 0.0 from alphanumeric string (say amount) having value $265.12+ or $265.12- or $0.0+ or $0.0- and use it apply struts logic tag in jsp. Not sure how to extract number maybe with help of javascript? Need quick help
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: extract decimal number from alphanumeric string
 
Similar Threads
Combine two Regular expressions
When will we get the value [B]NaN[/B].
Regular expression to take integers out of a string
sheet.getLastRowNum() returns -1
Regarding Collection