Top "String" questions

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

How to convert a string to lower or upper case in Ruby

How do I take a string and convert it to lower or upper case in Ruby?

ruby string uppercase lowercase
Iterating each character in a string using Python

In C++, I can iterate over an std::string like this: std::string str = "Hello World!"; for (int i = 0; i &…

python string iteration
How to remove single character from a String

For accessing individual characters of a String in Java, we have String.charAt(2). Is there any inbuilt function to remove …

java string
Creating a comma separated list from IList<string> or IEnumerable<string>

What is the cleanest way to create a comma-separated list of string values from an IList<string> or …

c# string
How to convert Strings to and from UTF8 byte arrays in Java

In Java, I have a String and I want to encode it as a byte array (in UTF8, or some …

java string encoding character-encoding
Check if a string contains a substring in SQL Server 2005, using a stored procedure

I've a string, @mainString = 'CATCH ME IF YOU CAN'. I want to check whether the word ME is inside @mainString. …

sql-server string tsql stored-procedures sql-server-2005
How would you make a comma-separated string from a list of strings?

What would be your preferred way to concatenate strings from a sequence such that between every two consecutive pairs a …

python string list
Delete first character of a string in Javascript

I want to delete the first character of a string, if the first character is a 0. The 0 can be there …

javascript string
How to nicely format floating numbers to String without unnecessary decimal 0?

An 64-bit double can represent integer +/- 253 exactly Given this fact I choose to use a double type as a …

java string floating-point format double
Split string with delimiters in C

How do I write a function to split and return an array for a string with delimiters in the C …

c string split