wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes RegExpr to Add Comma and Decimal Points Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "RegExpr to Add Comma and Decimal Points" Watch "RegExpr to Add Comma and Decimal Points" New topic
Author

RegExpr to Add Comma and Decimal Points

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
I am playing around with regular expressions and want to see if I can use it to add commas and decimal point to my money input field in the most concise way. However, I can only achieve adding a single comma and decimal point with a single line:

Does regular expressions provide any other facilities to add the remaining commas?
 
 
subject: RegExpr to Add Comma and Decimal Points