Top "Whitespace" questions

Whitespace, or white space, is often used to refer to any combination of spaces, tabs, and new lines which create blank space between text, either horizontally or vertically.

Removing whitespace from strings in Java

I have a string like this: mysz = "name=john age=13 year=2001"; I want to remove the whitespaces in the string. …

java whitespace
How do I trim whitespace?

Is there a Python function that will trim whitespace (spaces and tabs) from a string? Example: \t example string\t → …

python string whitespace trim strip
Remove all spaces from a string in SQL Server

What is the best way to remove all spaces from a string in SQL Server 2008? LTRIM(RTRIM(' a b …

sql sql-server string whitespace trim
Tab key == 4 spaces and auto-indent after curly braces in Vim

How do I make vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically …

vim whitespace indentation vi auto-indent
Split string on whitespace in Python

I'm looking for the Python equivalent of String str = "many fancy word \nhello \thi"; String whiteSpaceRegex = "\\s"; String[] words = str.…

python regex string split whitespace
Convert tabs to spaces in Notepad++

How do I convert tabs to spaces in Notepad++? I found a webpage that suggests it's possible, but I couldn't …

notepad++ whitespace indentation
How to split a string with any whitespace chars as delimiters

What regex pattern would need I to pass to java.lang.String.split() to split a String into an Array …

java string whitespace split
Make Vim show ALL white spaces as a character

I can't find a way to make Vim show all white spaces as a character. All I found was about …

vim whitespace vi hidden-characters
How to remove all white spaces in java

I have a programming assignment and part of it requires me to make code that reads a line from the …

java string whitespace
Split by comma and strip whitespace in Python

I have some python code that splits on comma, but doesn't strip the whitespace: >>> string = "blah, lots , …

python whitespace strip