Top "String" questions

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

How can I split a string with a string delimiter?

I have this string: My name is Marco and I'm from Italy I'd like to split it, with delimiter is …

c# string split
Multiline string literal in C#

Is there an easy way to create a multiline string literal in C#? Here's what I have now: string query = "…

c# string shorthand
How to check a string for specific characters?

How can I check if a string has several specific characters in it using Python 2? For example, given the following …

python string
How do I convert a String to an InputStream in Java?

Given a string: String exampleString = "example"; How do I convert it to an InputStream?

java string type-conversion inputstream
Python String and Integer concatenation

I want to create string using integer appended to it, in a for loop. Like this: for i in range(1,11): …

python string integer concatenation
Escaping HTML strings with jQuery

Does anyone know of an easy way to escape HTML from strings in jQuery? I need to be able to …

javascript jquery string escaping
What does the 'b' character do in front of a string literal?

Apparently, the following is the valid syntax: my_string = b'The string' I would like to know: What does this b …

python string unicode binary
In Bash, how can I check if a string begins with some value?

I would like to check if a string begins with "node" e.g. "node001". Something like if [ $HOST == user* ] then …

string bash comparison
Strip HTML from Text JavaScript

Is there an easy way to take a string of html in JavaScript and strip out the html?

javascript html string
How would you count occurrences of a string (actually a char) within a string?

I am doing something where I realised I wanted to count how many /s I could find in a string, …

c# string