tagged [whitespace]

How can I remove all spaces from file in Notepad++?

How can I remove all spaces from file in Notepad++? How can I remove ALL whitescape in a file, using Notepad++? Example data: ``` ;; ;;;2017-03-02;8.026944444;16.88583333;8.858888889 ;; ; ; ; 2017...

21 Apr at 16:47

regex check for white space in middle of string

regex check for white space in middle of string I want to validate that the characters are alpha numeric: I want to add the option that there might be a white space, so it would be a two word expressi...

28 Sep at 10:4

How do you allow spaces to be entered using scanf?

How do you allow spaces to be entered using scanf? Using the following code: A user can enter their name but when they enter a name with a space like `Lucas Aardvark`, `scanf()` just cuts off everythi...

17 Jun at 16:39

Check if a string has white space

Check if a string has white space I'm trying to . I found this function but it doesn't seem to be working: By the way, I added quotes to `RegExp`.

1 Mar at 16:19

sql server - how do i find rows with whitespace in a column

sql server - how do i find rows with whitespace in a column I want to do something like Column a is `NOT NULL` So what would be the equivalent of C# `string.IsNullOrWhiteSpace` in T-SQL to get all row...

10 Jun at 17:3

How can I determine if a String is non-null and not only whitespace in Groovy?

How can I determine if a String is non-null and not only whitespace in Groovy? Groovy adds the `isAllWhitespace()` method to Strings, which is great, but there doesn't seem to be a way of determining ...

11 Dec at 15:45

Remove multiple whitespaces

Remove multiple whitespaces I'm getting `$row['message']` from a MySQL database and I need to remove all whitespace like `\n` `\t` and so on. should be formatted to: I tried: b

How to trim whitespace between characters

How to trim whitespace between characters How to remove whitespaces between characters in c#? `Trim()` can be used to remove the empty spaces at the beginning of the string as well as at the end. For ...

11 Oct at 10:6

Reading string from input with space character?

Reading string from input with space character? I'm using Ubuntu and I'm also using Geany and CodeBlock as my IDE. What I'm trying to do is reading a string (like `"Barack Obama"`) and put it in a var...

17 Jun at 16:41

Add vertical whitespace using Twitter Bootstrap?

Add vertical whitespace using Twitter Bootstrap? What's the best way to add vertical whitespace using Twitter's Bootstrap? For example, let's say that I am creating a landing page and would like a bit...

How to replace multiple white spaces with one white space

How to replace multiple white spaces with one white space Let's say I have a string such as: I would like a function that turns multiple spaces into one space. So I would get: I know I could use regex...

7 Sep at 15:53

How to remove leading and trailing whitespace in a MySQL field?

How to remove leading and trailing whitespace in a MySQL field? I have a table with two fields (countries and ISO codes): In some rows the second field has whitespace at the start and/or end, which is...

2 Aug at 15:29

build argument lists containing whitespace

build argument lists containing whitespace In bash one can escape arguments that contain whitespace. This also works for arguments to a command or function: So far so good, but what if I want to manip...

17 Jan at 20:39

Trying to replace all white space with a single space

Trying to replace all white space with a single space My program is a file validation utility. I have to read in a format file and then parse out each line by a single space. But obviously, the person...

18 Feb at 20:5

Render a string in HTML and preserve spaces and linebreaks

Render a string in HTML and preserve spaces and linebreaks I have an MVC3 app that has a details page. As part of that I have a description (retrieved from a db) that has spaces and new lines. When it...

Avoid line break between html elements

Avoid line break between html elements I have this `` element: I was hoping to keep this into a single line, but this is what I get: ![enter image description here](https://i.stack.imgur.com/9MzIN.png...

6 Oct at 18:15

Tab key == 4 spaces and auto-indent after curly braces in Vim

Tab key == 4 spaces and auto-indent after curly braces in Vim How do I make [vi](http://en.wikipedia.org/wiki/Vi)-[Vim](http://en.wikipedia.org/wiki/Vim_%28text_editor%29) never use tabs (converting s...

How do I escape spaces in path for scp copy in Linux?

How do I escape spaces in path for scp copy in Linux? I want to copy a file from remote to local system. Now I'm using scp command in linux system. I have some folders or files names are with spaces, ...

29 Dec at 00:38

C# XSLT transform adding 
 and 
 to the output

C# XSLT transform adding 
 and 
 to the output I have an XSLT transform issue: And the value of Data/PercentSpaceUsed is integer 3. And it outputs: instead of what I expected: Here's the code ...

30 Nov at 08:37

Fastest way to remove white spaces in string

Fastest way to remove white spaces in string I'm trying to fetch multiple email addresses seperated by "," within string from database table, but it's also returning me whitespaces, and I want to remo...

5 Mar at 11:50

Difference between using Split with no parameters and RemoveEmptyEntries option

Difference between using Split with no parameters and RemoveEmptyEntries option I'm checking lines in a given text file. Lines may have random whitespace and I'm only interested in checking the number...

10 Jan at 15:19

Make Git automatically remove trailing white space before committing

Make Git automatically remove trailing white space before committing I'm using Git with my team and would like to remove white space changes from my diffs, logs, merges, etc. I'm assuming that the eas...

17 Apr at 12:43

Can you preserve leading and trailing whitespace in XML?

Can you preserve leading and trailing whitespace in XML? How does one tell the XML parser to honor leading and trailing whitespace? Above prints out 3. ``` Dim xml: Set xml = CreateObject("MSXML2.DOMD...

5 Jan at 22:2

Why does XmlReader skip every other element if there is no whitespace separator?

Why does XmlReader skip every other element if there is no whitespace separator? I'm seeing strange behavior when I try to parse XML using the LINQ XmlReader class. Test case below: it looks like whet...

19 Feb at 21:16

Trim whitespace from a String

Trim whitespace from a String I know there are several ways to do this in Java and C that are nice, but in C++ I can't seem to find a way to easily implement a string trimming function. This is what I...

23 Oct at 20:40