Questions tagged [spaces]

The space character, `U+0020`, used to separate words/tokens in most natural and programming languages.

The space character, U+0020, used to separate words/tokens in most natural and programming languages. Space is a whitespace character.

Spaces are frequently of concern to programmers in the context of languages with significant whitespace (e.g. Python), source code indentation, and separating tokens. Separating tokens correctly is important for shell scripts, URIs, file names/paths, text processing, and string formatting. Questions regarding all of these areas are common on Stack Overflow, as spaces appearing unexpectedly can cause unexpected behavior whose source is not immediately obvious.

"Spaces" may also refer to the virtual desktop functionality of Mac OS X, first referred to as "Spaces" in OS X 10.5.

1024 questions
-1
votes
1 answer

Add a space after every character in VBS

I want to have an input box, you type in a string and it gives you an output but there is a space after every character (even spaces). Example: "Hello There." → "H e l l o T h e r e ." Everything I've tried online never worked (I would get a lot…
-1
votes
2 answers

Is there a Notepad++ RegEx to remove everything but digits and spaces?

Is there a RegEx to remove everything but digits and spaces in Notepad++? I know there is one that removes only digits but i dont need that. PS: I do not want the lines to be removed Example: 11234123 alex-james 1412412 mmafsmasdas After…
-1
votes
6 answers

I want to remove any leading spaces within a TextBox in my windows forms application using .net

not allowing first character as spaces after textbox allow spaces in windows form application like textbox1.text=" fg"; //----------- not like textbox1.text="vcvc hfh"; //------------Like this
Ranagababu
  • 7
  • 1
  • 2
  • 3
-1
votes
2 answers

Ways to prevent survey respondents from inputting spaces as their first character

I am basically new to html/css/javascript and I just got thrown a problematic issue. I have a text box for my "Others, please specify" option. However, there are instances where some respondents can proceed to the next question by just entering a…
-1
votes
1 answer

PHP - move_uploaded_file replace spaces with %20

I am using move_uploaded_file to upload a file, but when I upload a file with spaces it does not replace is with %20 and then I am stuck with the file name with spaces, how do I fix this? Here is my code: $target_dir = "uploads/"; …
user979331
  • 11,039
  • 73
  • 223
  • 418
-1
votes
2 answers

in java my file paths with included spaces show up as %20 and i'm not sure why

I have a photo selection model, but for some reason whenever I call the path of the images, the space in the path is converted to it's HTML code and I'm not sure why. Do any of you have any ideas? Thanks for any help you can spare.
cshov
  • 81
  • 2
  • 9
-1
votes
1 answer

Trim cell values in rows and columns in different sheets VBA

I would like to trim the cells that have spaces in them. But the macro I now have does not work. Sub DoSomething() 'Declare Variables Dim i, r, c, count, lastColData, LastRowData, lastRowInput, StartSearch As Long Dim shtData, shtInput,…
Daphn123
  • 23
  • 5
-1
votes
1 answer

Imagemagick ftp and spaces

Imagemagick provides the identify tool, which works perfectly for what I need. I use it on Ubuntu, with Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114. Here is how I use it: $ identify "ftp://SERVERNAME:PASSWORD@HOST/DIRECTORY/FILE.pdf" But when…
Daisybodo
  • 1
  • 2
-1
votes
1 answer

C - Add spaces to input string on capital letters and numbers, with some exceptions

I'm writing a function in C (not C++, this is going to run on an older computer), which should take an input char* and add spaces to it, based on letter capitalization and numbers, then return the result. I cannot use strings and their functions I'm…
MiDWaN
  • 35
  • 6
-1
votes
2 answers

Can you explain the differences of using tabs and spaces?

A very new coder here! What is the difference of using tabs and spaces in visual appearance. I understand that tabs can have a different length of columns, and how they look, but what about indentation with spaces? How does it work? Do developers…
Noah
  • 1
-1
votes
1 answer

inserting spaces function after char worked outside the code but inside return error in C++

I made a function inserting spaces after a specific char(s) it works perfect for any long ,any char when separated. like now using namespace std; insert_spaces_before_delims(string a) { vector found; int temp; int i=0; //string…
-1
votes
1 answer

PHP - issue with trim()

Context: I'm saving a .csv file "keys" (the first line) into an array $CSV to get a multidimensionnal array of the file. The keys containing multiple words keep their 1st and last spaces as 1st and last character. The file is encoded in Windows-1252…
AymDev
  • 6,626
  • 4
  • 29
  • 52
-1
votes
1 answer

How to remove spaces from a fixed-width text file in R

I want to load a text file that looks like the following into R, remove all spaces, then rewrite the file. 1 061 061 1 0 081 080 1 0 061 060 1 1 051 051 1 0 101 100 1 The way I'd go about this is with readlines(), removing the spaces in each row,…
Union find
  • 7,759
  • 13
  • 60
  • 111
-1
votes
1 answer

Spaces and tab comparison string Xcode

I wrote simple test: func testTabs() { let tabbed = "\t" let spaced = " " XCTAssert(tabbed == spaced, "Comparison is illegal") } func testTabs() { let tabbed = "\t" let tab = " " …
Zaporozhchenko Oleksandr
  • 4,660
  • 3
  • 26
  • 48