Top "Trim" questions

Trimming refers to the manipulation of a text string to remove leading and/or trailing whitespace (and/or ASCII control characters).

How can I trim beginning and ending double quotes from a string?

I would like to trim a beginning and ending double quote (") from a string. How can I achieve that in …

java string trim
Remove '\' char from string c#

I have the following code string line = ""; while ((line = stringReader.ReadLine()) != null) { // split the lines for (int c = 0; c < …

c# trim
Replace all whitespace characters

I want to replace all occurrences of white space characters (space, tab, newline) in JavaScript. How to do so? I …

javascript trim
Remove whitespaces inside a string in javascript

I've read this question about javascript trim, with a regex answer. Then I expect trim to remove the inner space …

javascript html trim
Replace multiple whitespaces with single whitespace in JavaScript string

I have strings with extra whitespaces, each time there's more than only one whitespace I'd like it be only one. …

javascript string trim
Does swift have a trim method on String?

Does swift have a trim method on String? For example: let result = " abc ".trim() // result == "abc"

string swift trim
Trim to remove white space

jQuery trim not working. I wrote the following command to remove white space. Whats wrong in it? var str = $('input').…

jquery trim
Trim Whitespaces (New Line and Tab space) in a String in Oracle

I need to trim New Line (Chr(13) and Chr(10) and Tab space from the beginning and end of a String) …

sql oracle trim
Trim spaces from end of a NSString

I need to remove spaces from the end of a string. How can I do that? Example: if string is "…

nsstring whitespace trim
How to delete specific characters from a string in Ruby?

I have several strings that look like this: "((String1))" They are all different lengths. How could I remove the parentheses …

ruby string trim