Top "Trim" questions

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

Cocoa - Trim all leading whitespace from NSString

(have searched, but not been able to find a simple solution to this one either here, or in Cocoa docs) …

cocoa nsstring whitespace trim
Trim all white space from string JavaScript

How can I remove all the white space from a given string. Say: var str = " abc de fog "; str.trim(); …

javascript string trim
Trim trailing spaces in Xcode

Is there a way to force Xcode to trim trailing whitespaces when I save file? I'm using version 3.1.3 if that …

xcode editor trim developer-tools
Java String trim has no effect

Java String trim is not removing a whitespace character for me. String rank = (some method); System.out.println("(" + rank + ")"); The …

java string unicode trim spaces
MySQL select fields containing leading or trailing whitespace

I can use the MySQL TRIM() method to cleanup fields containing leading or trailing whitespace with an UPDATE like so: …

mysql sql trim
In Haskell, how do you trim whitespace from the beginning and end of a string?

How do you trim whitespace from the start and end of a string? trim " abc " => "abc" Edit: Ok, let …

string haskell trim removing-whitespace
Android sdk cut/trim video file

Is there any way to cut a video (mp4 or 3gp) on android, like use only the last 5 seconds of …

android video media trim
How do I trim lines read from standard input on bash?

I want a bash way to read lines from standard input (so I can pipe input to it), and remove …

bash trim
trim in javascript ? what this code is doing?

I was looking for a trim function in JavaScript which doesn't exist and some code on Googling suggests that use: …

javascript regex trim
How Do I Trim Leading and Trailing Quote from MySQL Row?

I have a MySQL table that I have imported from a CSV file. In this process, a bunch of the …

mysql database trim