Question : remove ascii characters from string ruby
Answered by : clever-caracal-7p2o3i4npav8
s.delete!("^\u{0000}-\u{007F}")
Source : https://stackoverflow.com/questions/3200594/how-to-remove-all-non-ascii-characters-from-a-string-in-ruby | Last Update : Thu, 23 Apr 20
Question : remove ascii characters from string ruby
Answered by : clever-caracal-7p2o3i4npav8
s.gsub!(/\P{ASCII}/, '')
Source : https://stackoverflow.com/questions/3200594/how-to-remove-all-non-ascii-characters-from-a-string-in-ruby | Last Update : Thu, 23 Apr 20