Top "String" questions

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

Python - Check If Word Is In A String

I'm working with Python v2, and I'm trying to find out if you can tell if a word is in …

python string
Convert a string to an enum in C#

What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag …

c# string enums
Determine if a String is an Integer in Java

I'm trying to determine if a particular item in an Array of strings is an integer or not. I am .…

java string int
How do I put a variable inside a string?

I would like to put an int into a string. This is what I am doing at the moment: num = 40 …

python string variables
How to tell if a string contains a certain character in JavaScript?

I have a page with a textbox where a user is supposed to enter a 24 character (letters and numbers, case …

javascript string
Optimum way to compare strings in JavaScript?

I am trying to optimize a function which does binary search of strings in JavaScript. Binary search requires you to …

javascript string optimization comparison binary-search
Why can't I use switch statement on a String?

Is this functionality going to be put into a later Java version? Can someone explain why I can't do this, …

java string switch-statement
How do I break a string over multiple lines?

In YAML, I have a string that's very long. I want to keep this within the 80-column (or so) view …

string syntax yaml newline
JavaScript - Replace all commas in a string

I have a string with multiple commas, and the string replace method will only change the first one: var mystring = "…

javascript string replace substitution
.NET String.Format() to add commas in thousands place for a number

I want to add a comma in the thousands place for a number. String.Format()?

c# .net string format