Top "Trim" questions

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

Trim specific character from a string

What's the JavaScript equivalent to this C# Method: var x = "|f|oo||"; var y = x.Trim('|'); // "f|oo" …

javascript string trim
JavaScript: Parsing a string Boolean value?

JavaScript has parseInt() and parseFloat(), but there's no parseBool or parseBoolean method in the global scope, as far as I'm …

javascript trim
Strip / trim all strings of a dataframe

Cleaning the values of a multitype data frame in python/pandas, I want to trim the strings. I am currently …

python regex pandas dataframe trim
Removing spaces from string

I'm trying to remove all the spaces from a string derived from user input, but for some reason it isn't …

android string replace trim
How to remove trailing and leading whitespace for user-provided input in a batch file?

I know how to do this when the variable is pre-defined. However, when asking for the user to enter in …

input batch-file whitespace trim
How to Remove the last char of String in C#?

I have a numeric string, which may be "124322" or "1231.232" or "132123.00". I want to remove the last char of my string (…

c# string trim
Trim characters in Java

How can I trim characters in Java? e.g. String j = “\joe\jill\”.Trim(new char[] {“\”}); j should be "joe\…

java string trim
How to remove new line characters from data rows in mysql?

I can loop through all of the rows in a php script and do UPDATE mytable SET title = "'.trim($…

mysql trim
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 …

c++ string whitespace trim
Remove last specific character in a string c#

I use WinForms c#.I have string value like below, string Something = "1,5,12,34,"; I need to remove last comma in a …

c# trim