strip removes other kinds of whitespace, too: : Strip « String « Ruby






strip removes other kinds of whitespace, too:



puts "\t\tBye, tabs and line endings!\r\n".strip                           

 








Related examples in the same category

1.strip both sides
2.Strip from both side in place
3.Strip the tab and new line characters
4.Managing Whitespace and new line character