fork download
  1. text = 'कंप्यूटर'
  2. regex = /[^\p{L}\p{Nd}\p{M}]+/
  3. filter_text = text.gsub(regex, '')
  4. puts filter_text
Success #stdin #stdout 0.01s 6384KB
stdin
Standard input is empty
stdout
कंप्यूटर