Line-message Jun 18th, 2016 3:35 am 1 2 3 4 5 6 7 8 9 10 11 #!/usr/bin/env ruby # encoding: utf-8 loop do @content||="" printf ">>" text = gets text == "@q\n" ? break : @content+=text end @content.split("\n").each do |line| puts line=line.scan(/\d{2}:\d{2} .* (.*)/) end