abc = "test = > @ Stack overflow"puts abc.gsub(/\s*([^\s\p{L}\p{N}])\s*/, "\\1")
Standard input is empty
test=>@Stack overflow
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!