Managing Whitespace and new line character : Strip « String « Ruby






Managing Whitespace and new line character


" \tWhitespace at beginning and end. \t\n\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.strip removes other kinds of whitespace, too: