Top "Trailing" questions

Trailing characters are characters at the end of a string that should be removed for reason (eg.

How can I remove a trailing newline?

What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is …

python newline trailing
Remove Trailing Spaces and Update in Columns in SQL Server

I have trailing spaces in a column in a SQL Server table called Company Name. All data in this column …

sql sql-server-2008 trailing
How to remove leading and trailing zeros in a string? Python

I have several alphanumeric strings like these listOfNum = ['000231512-n','1209123100000-n00000','alphanumeric0000', '000alphanumeric'] The desired output …

python string trailing chomp leading-zero
How do I remove trailing whitespace using a regular expression?

I want to remove trailing white spaces and tabs from my code without removing empty lines. I tried: \s+$ and: ([^\…

regex whitespace trailing
JAVA How to remove trailing zeros from a double

For example I need 5.0 to become 5, or 4.3000 to become 4.3.

java double zero trailing
Remove a trailing slash from a string(changed from url type) in JAVA

I want to remove the trailing slash from a string in Java. I want to check if the string ends …

java url slash trailing
How to add a trailing zero to a price with jQuery

So I have a script which returns a price for a product. However the price may or may not include …

jquery zero trailing
Why are trailing commas allowed in a list?

I am curious why in Python a trailing comma in a list is valid syntax, and it seems that Python …

python list syntax comma trailing
Swift - Remove Trailing Zeros From Double

What is the function that removes trailing zeros from doubles? var double = 3.0 var double2 = 3.10 println(func(double)) // 3 println(func(double2)) // 3.1

ios swift double trailing
Bash: find files with trailing spaces at the end of the lines

I'm looking for a bash command to find files with trailing spaces at the end of each line. I'm not …

linux bash trailing