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 to Trim "[" char from a string in Golang

Probably a silly thing but got stuck on it for a bit... Can't trim a "[" char from a string, things …

string go trim
remove extra spaces in string javascript

what function will turn this contains spaces into this contains spacesusing javascript? I've tried the following, using similar SO questions, …

javascript regex trim
How to remove only trailing spaces of a string in Java and keep leading spaces?

The trim() function removes both the trailing and leading space, however, if I only want to remove the trailing space …

java android string trim
IE8 and JQuery's trim()

I am making use of trim() like so: if($('#group_field').val().trim()!=''){ Where group_field is an …

jquery internet-explorer internet-explorer-8 trim
Does the MySQL TRIM function not trim line breaks or carriage returns?

From my experiments, it does not appear to do so. If this is indeed true, what is the best method …

mysql string trim
How to use jQuery's trim() function

As discussed in many questions on stack - IE 8 wont accept .trim(), but the jQuery framework takes care of that. …

javascript jquery trim
Remove first and last char from string

I have this: $dataList = "*one*two*three*"; $list = explode("*", $dataList); echo"<pre>";print_r($list);echo"</pre&…

php trim
javascript need to do a right trim

In javascript, how to I do a right trim? I have the following: var s1 = "this is a test~"; var …

javascript trim
How do you trim the audio file's end using SoX?

Using Sox, how do I shorten an audio file by 5 seconds, trimming from the end? For example, this is how …

audio trim sox
jQuery text truncation (read more style)

My question is very similar to "Trim text to 340 chars" but in jQuery. It sounded very straight forward but when …

jquery text trim