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.

Regex for IBAN allowing for white spaces AND checking for exact length

I need to check an input field for a German IBAN. The user should be allowed to leave in white …

regex whitespace iban
How to remove leading and trailing whitespaces?

I'm using awk '{gsub(/^[ \t]+|[ \t]+$/,""); print;}' in.txt > out.txt to remove both leading and trailing …

awk whitespace gsub removing-whitespace
changing the delimiter for cin (c++)

I've redirected "cin" to read from a file stream cin.rdbug(inF.rdbug()) When I use the extraction operator it …

c++ stream whitespace delimiter cin
How do I make Emacs show blank spaces?

How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like …

emacs whitespace
How to trim blank spaces from PowerShell output?

I am using a PowerShell script to find all occurrences of a regex expression and output it to file. I …

powershell whitespace removing-whitespace
How to separate string by space using Objective-C?

Assume that I have a String like this: hello world this may have lots of sp:ace or little space …

objective-c nsstring nsarray whitespace
How can I trim trailing whitespace in Visual Studio 2012?

Now that macros are gone from Visual Studio 2012, what is the best way to automatically trim trailing whitespace whenever a …

whitespace visual-studio-2012
Skip whitespaces with getline

I'm making a program to make question forms. The questions are saved to a file, and I want to read …

c++ string whitespace getline stringstream
How to remove trailing whitespaces for multiple files?

Are there any tools / UNIX single liners which would remove trailing whitespaces for multiple files in-place. E.g. one that …

shell find whitespace removing-whitespace in-place
Converting XML to plain text - how should I ignore/handle whitespace in the XSLT?

I'm trying to convert an XML file into the markup used by dokuwiki, using XSLT. This actually works to some …

xml xslt whitespace dokuwiki