@Deleplace/

Remove all non-ASCII characters

Ruby

No description

fork
loading
Files
  • main.rb

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.9676821259761526","path":"main.rb","file":{"path":"main.rb","content":{"asEncoding":{"base64":"cyA9ICJkw6ZtaSA6INC/0YDQuNC80LXRgCA6IHDFmcOta2xhZCA6IHRow60gZOG7pSIKCnQgPSBzLmdzdWIoL1tbOl5hc2NpaTpdXS8sICIiKQoKcHV0cyB0"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
s = "dæmi : пример : příklad : thí dụ"

t = s.gsub(/[[:^ascii:]]/, "")

puts t
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]