line = "hello\377\373\001 \377\374\001 \377\375\001world"
p line

regex = /\377[\373-\377]\001/

line.gsub! regex, ''
p line

--output:--
"hello\xFF\xFB\x01 \xFF\xFC\x01 \xFF\xFD\x01world"
"hello  world"

-- 
Posted via http://www.ruby-forum.com/.