module Regexp::Scanner

def self.copy(data, range)

Copy from ts to te from data as text
def self.copy(data, range)
  data[range].pack('c*')
end