I think
gsub(/(\d)(\d)/, ‘\1,\2’)
doesn’t work.
It should be
gsub(/(\d)(?=\d)/, ‘\1,’)
instead.
I think
gsub(/(\d)(\d)/, ‘\1,\2’)
doesn’t work.
It should be
gsub(/(\d)(?=\d)/, ‘\1,’)
instead.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs