1 Over the course of my long life, 18 Open it up. 19 What the hell? 20 Aah! 21 [Clatter] 22 Rebekah: Hello. 23 Mm. 24 Lovely to see such a handsome face 25 after a long journey. 26 Can I eat him, brother? 27 Elijah: I'd rather
1 Over the course of my long life, 18 Open it up. 19 What the hell? 20 Aah! 21 [Clatter] 22 Rebekah: Hello. 23 Mm. 24 Lovely to see such a handsome face 25 after a long journey. 26 Can I eat him, brother? 27
就是说如果有连续的两行字幕就把区中的换行符换成空格,有没有办法? long_string = IO.read("the.originals.1.txt") long_string.gsub!(/[A-Za-z][\s][A-Za-z]/,'') 怎么只替换这一部分?