I\'m practicing with Ruby and regex to delete certain unwanted characters. For example:
input = input.gsub(/<\\/?[^>]*>/, \'\')
and fo
You can match all the characters you want, and then join them together, like this:
original = "aøbæcå" stripped = original.scan(/[a-zA-Z]/).to_s puts stripped
which outputs "abc"
"abc"