Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RegExpr to Add Comma and Decimal Points  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!