Top "String" questions

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

How to convert Java String into byte[]?

Is there any way to convert Java String to a byte[] (not the boxed Byte[])? In trying this: System.out.…

java arrays string
How do I create an array of strings in C?

I am trying to create an array of strings in C. If I use this code: char (*a[2])[14]; a[0]="blah"; …

c arrays string
Convert string with commas to array

How can I convert a string to a JavaScript array? Look at the code: var string = "0,1"; var array = [string]; alert(…

javascript arrays string deserialization
Count the number occurrences of a character in a string

What's the simplest way to count the number of occurrences of a character in a string? e.g. count the …

python string count
How to convert a string to integer in C?

I am trying to find out if there is an alternative way of converting string to integer in C. I …

c string atoi
How to extract numbers from a string in Python?

I would extract all the numbers contained in a string. Which is the better suited for the purpose, regular expressions …

python regex string numbers
How to convert integer to string in C?

I tried this example: /* itoa example */ #include <stdio.h> #include <stdlib.h> int main () { int i; …

c string integer type-conversion
How to remove text from a string?

I've got a data-123 string. How can I remove data- from the string while leaving the 123?

javascript string
String comparison in Python: is vs. ==

I noticed a Python script I was writing was acting squirrelly, and traced it to an infinite loop, where the …

python string comparison equality
How to pad zeroes to a string?

What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric …

python string zero-padding