I\'m practicing with Ruby and regex to delete certain unwanted characters. For example:
input = input.gsub(/<\\/?[^>]*>/, \'\')
and fo
If you just wanted ASCII characters, then you can use:
original = "aøbauhrhræoeuacå" cleaned = "" original.each_byte { |x| cleaned << x unless x > 127 } cleaned # => "abauhrhroeuac"