s = <<'EOF' [Hello] How are you Doing Hope you have a nice day! [goodbye] cya Take care EOF p s.lines.grep(/^(?!\[.*?])/)
Standard input is empty
["Doing\n", " Hope you have a nice day!\n", "Take care\n"]
prog.rb:8: warning: regular expression has ']' without escape: /^(?!\[.*?])/ prog.rb:8: warning: regular expression has ']' without escape: /^(?!\[.*?])/