local s = string.gsub(" and some text channel ", "^%s+%S+%s+(.*%S)%s+%S+%s+$", "%1")print(s)
Standard input is empty
some text
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!