Piyush Ranjan's blogsite, Ruby, Ruby on Rails
10000.to_s.gsub(/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/, "\\1,")
super cool :)
you are cool
ruby is cool :)
Post a Comment
3 comments:
super cool :)
you are cool
ruby is cool :)
Post a Comment