Gang Of Coders
Home
About Us
Contact Us
All String Solutions on Gang of Coders
Total of 2360 String Solutions
How to check whether a string contains a substring in JavaScript?
Javascript
String
Substring
String Matching
What is the difference between String and string in C#?
C#
.Net
String
Types
Alias
How to replace all occurrences of a string in JavaScript
Javascript
String
Replace
How do I make the first letter of a string uppercase in JavaScript?
Javascript
String
Letter
Capitalize
How do I read / convert an InputStream into a String in Java?
Java
String
Io
Stream
Inputstream
Why is char[] preferred over String for passwords?
Java
String
Security
Passwords
Char
Does Python have a string 'contains' substring method?
Python
String
Substring
Contains
How do I convert a String to an int in Java?
Java
String
Type Conversion
Integer
Convert bytes to a string
Python
String
Python 3.x
How do I iterate over the words of a string?
C++
String
Split
Case insensitive 'Contains(string)'
C#
String
Contains
Case Insensitive
How to check if a string contains a substring in Bash
String
Bash
Shell
Substring
Sh
Creating multiline strings in JavaScript
Javascript
String
Multiline
Heredoc
How do I check if a string contains a specific word?
Php
String
Substring
Contains
String Matching
Extract filename and extension in Bash
Bash
String
Filenames
How do I get a substring of a string in Python?
Python
String
Substring
Generate random string/characters in JavaScript
Javascript
String
Random
How do I lowercase a string in Python?
Python
String
Uppercase
Lowercase
Check if a variable is a string in JavaScript
Javascript
String
How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
C#
.Net
String
Character Encoding
When should I use double or single quotes in JavaScript?
Javascript
String
Conventions
How do I break a string in YAML over multiple lines?
String
Syntax
Yaml
Newline
How to convert a string to an integer in JavaScript?
Javascript
String
Integer
Data Conversion
How do I print curly-brace characters in a string while using .format?
Python
String
Format
String Formatting
Curly Braces
How to read a file line-by-line into a list?
Python
String
File
Readlines
Why is it string.join(list) instead of list.join(string)?
Python
String
List
Easiest way to convert int to string in C++
C++
String
Int
Type Conversion
How to generate a random alpha-numeric string
Java
String
Random
Alphanumeric
How to check if the string is empty?
Python
String
Comparison Operators
How to pad zeroes to a string?
Python
String
Zero Padding
Why does this code using random strings print "hello world"?
Java
String
Random
How to split a string in Java
Java
String
Split
How to check if a string "StartsWith" another string?
Javascript
String
Startswith
How to split the definition of a long string over multiple lines?
Python
String
Multiline
Multilinestring
How do I create a Java string from the contents of a file?
Java
String
File
File Io
Io
startsWith() and endsWith() functions in PHP
Php
String
Random string generation with upper case letters and digits
Python
String
Random
How to convert a string to lower case in Bash?
String
Bash
Shell
Lowercase
Reverse a string in Python
Python
String
Converting integer to string in Python
Python
String
Integer
How do I get the filename without the extension from a path in Python?
Python
String
Path
Convert JavaScript String to be all lower case
Javascript
String
Trim string in JavaScript?
Javascript
String
Trim
How to do case insensitive string comparison?
Javascript
String
Convert JS object to JSON string
Javascript
Json
String
Object
How do I trim whitespace from a string?
Python
String
Trim
Best way to convert string to bytes in Python 3?
Python
String
Character Encoding
Python 3.x
Multiline string literal in C#
C#
String
Shorthand
Why does comparing strings using either '==' or 'is' sometimes produce a different result?
Python
String
Comparison
Identity
Equality
How do I check if a string contains another string in Objective-C?
Ios
Objective C
String
Range
Substring
How to read a text file into a string variable and strip newlines?
Python
String
Converting 'ArrayList<String> to 'String[]' in Java
Java
Arrays
String
Arraylist
Collections
How to convert a string to lower or upper case in Ruby
Ruby
String
Uppercase
Lowercase
What does the 'b' character do in front of a string literal?
Python
String
Unicode
Binary
Ukkonen's suffix tree algorithm in plain English
String
Algorithm
Data Structures
Language Agnostic
Suffix Tree
How do I trim whitespace?
Python
String
Whitespace
Trim
Strip
How to trim whitespace from a Bash variable?
String
Bash
Variables
Trim
Count the number of occurrences of a character in a string
Python
String
Count
endsWith in JavaScript
Javascript
String
Ends With
How to compare strings in Bash
String
Bash
Convert a string to an enum in C#
C#
String
Enums
How do I check if string contains substring?
Javascript
Jquery
String
Substring
Contains
How to escape braces (curly brackets) in a format string in .NET
C#
.Net
String
Parsing
Formatting
Converting an object to a string
Javascript
String
Object
Serialization
Tostring
How to convert UTF-8 byte[] to string
C#
.Net
Arrays
String
Type Conversion
StringBuilder vs String concatenation in toString() in Java
Java
Performance
String
Concatenation
Stringbuilder
How to convert list to string
Python
String
List
Why can't I use switch statement on a String?
Java
String
Switch Statement
Converting from a string to boolean in Python?
Python
String
Boolean
How to convert a std::string to const char* or char*
C++
String
Char
Constants
Convert a String representation of a Dictionary to a dictionary?
Python
String
Dictionary
What is the correct way to check for string equality in JavaScript?
Javascript
String
String Comparison
Escape curly brace '{' in String.Format
C#
.Net
String
How to check if a String is numeric in Java
Java
String
Numeric
In Bash, how can I check if a string begins with some value?
String
Bash
Comparison
How would you count occurrences of a string (actually a char) within a string?
C#
String
Creating a comma separated list from IList<string> or IEnumerable<string>
C#
String
Java string to date conversion
Java
String
Date
Time
Data Conversion
How to get a function name as a string?
Python
String
Function
.NET String.Format() to add commas in thousands place for a number
C#
.Net
String
Format
How do I convert a String to an InputStream in Java?
Java
String
Type Conversion
Inputstream
How do I concatenate items in a list to a single string?
Python
String
List
Concatenation
PHP random string generator
Php
String
Random
Remove empty array elements
Php
Arrays
String
Best way to repeat a character in C#
C#
.Net
String
How to check if type of a variable is string?
Python
String
Variables
Types
What does %w(array) mean?
Ruby
Arrays
String
Notation
Extract substring in Bash
String
Bash
Shell
Substring
How do I generate a stream from a string?
C#
Unit Testing
String
Stream
How to convert an instance of std::string to lower case
C++
String
C++ Standard-Library
Tolower
How to convert a char to a String?
Java
String
Char
Type Conversion
Convert hex string to int in Python
Python
String
Hex
Easiest way to split a string on newlines in .NET?
C#
.Net
String
Split
Are multi-line strings allowed in JSON?
Json
String
Syntax
Multiline
Strip all non-numeric characters from string in JavaScript
Javascript
String
What is the difference between single-quoted and double-quoted strings in PHP?
Php
String
Syntax
How to efficiently concatenate strings in go
String
Go
String Concatenation
Remove empty strings from a list of strings
Python
String
List
Identify if a string is a number
C#
String
Parsing
Isnumeric
Converting string to byte array in C#
C#
String
Encoding
Byte
std::wstring VS std::string
C++
String
Unicode
C++ Faq
Wstring
How to remove text from a string?
Javascript
String
How can I convert a comma-separated string to an array?
Javascript
String
Split
How to check whether a string contains a substring in Ruby
Ruby
String
Difference between text and varchar (character varying)
String
Postgresql
Text
Types
Varchar
Get the length of a String
Ios
Swift
String
Xcode
Cocoa Touch
Print string to text file
Python
String
Text
File Io
TypeError: a bytes-like object is required, not 'str' when writing to a file in Python 3
Python
Python 3.x
String
File
Byte
Split a string by another string in C#
C#
.Net
String
Split
How to change a string into uppercase
Python
String
Uppercase
Best way to strip punctuation from a string
Python
String
Punctuation
C# List<string> to string with delimiter
C#
String
List
Delimiter
Strip HTML from Text JavaScript
Javascript
Html
String
How to check if a string is a substring of items in a list of strings?
Python
String
List
How do you write multiline strings in Go?
String
Go
Multiline
Split Strings into words with multiple word boundary delimiters
Python
String
Split
Split a String into an array in Swift?
Ios
Arrays
Swift
String
Split
How to convert string representation of list to a list?
Python
String
How do I convert from int to String?
Java
String
Type Conversion
How to count string occurrence in string?
Javascript
Regex
String
Repeat a string in JavaScript a number of times
Javascript
String
Character
Repeat
In C#, should I use string.Empty or String.Empty or "" to intitialize a string?
C#
.Net
String
Initialization
Fastest method to replace all instances of a character in a string
Javascript
String
Replace
How can I convert String to Int?
C#
.Net
String
Int
Type Conversion
Delete first character of string if it is 0
Javascript
String
Filter pandas DataFrame by substring criteria
Python
String
Pandas
Dataframe
What are the differences between Rust's `String` and `str`?
String
Rust
Simple way to repeat a string
Java
String
How do I compare strings in Java?
Java
String
Equality
How do I strip all spaces out of a string in PHP?
Php
String
Spaces
How do I append one string to another in Python?
Python
String
Append
Remove final character from string
Python
String
How to find if an array contains a specific string in JavaScript/jQuery?
Javascript
Jquery
Arrays
String
What's the @ in front of a string in C#?
C#
.Net
String
Converting a String to DateTime
C#
String
Datetime
Type Conversion
How do I replace a character at a particular index in JavaScript?
Javascript
String
Replace
Character Replacement
Select <a> which href ends with some string
Jquery
String
Anchor
Href
Split string with multiple delimiters in Python
Python
String
Split
Delimiter
Java: convert List<String> to a join()d String
Java
String
List
Count the number of occurrences of a character in a string in Javascript
Javascript
String
How can I do string interpolation in JavaScript?
Javascript
String
String Interpolation
Read whole ASCII file into C++ std::string
C++
String
Caching
File Io
Standard Library
How to replace a string in multiple files in linux command line
Linux
String
Remove specific characters from a string in Python
Python
String
Replace
Immutability
How can I convert a std::string to int?
C++
String
Integer
How to convert an int value to string in Go?
String
Go
Int
Converters
What's the best way to convert a number to a string in JavaScript?
Javascript
String
Performance
Coding Style
Numbers
How to get the position of a character in Python?
Python
String
How can I fill out a Python string with spaces?
Python
String
String Formatting
Pad
Check if a string contains a string in C++
C++
String
Substring
How can I use grep to find a word inside a folder?
String
Command Line
Grep
Keyword Search
File Search
How can I capture the result of var_dump to a string?
Php
String
Var Dump
How can I check if a string represents an int, without using try/except?
Python
String
Integer
Escaping HTML strings with jQuery
Javascript
Jquery
String
Escaping
Android: How do I get string from resources using its name?
Android
String
Resources
How would you make a comma-separated string from a list of strings?
Python
String
List
Get an OutputStream into a String
Java
String
Io
Stream
Ruby function to remove all white spaces?
Ruby
String
Convert Int to String in Swift
String
Casting
Int
Converter
Swift
How to convert comma-separated String to List?
Java
String
Collections
Split
How can I exclude one word with grep?
Regex
String
Search
Grep
How do I count the number of occurrences of a char in a String?
Java
String
How to extract numbers from a string in Python?
Python
Regex
String
Numbers
How do I check if a string contains another string in Swift?
Swift
String
Nsstring
Substring
Is it possible to have placeholders in strings.xml for runtime values?
Android
String
String Formatting
Android Resources
Split string on whitespace in Python
Python
Regex
String
Split
Whitespace
String comparison in Python: is vs. ==
Python
String
Comparison
Equality
Replace Line Breaks in a String C#
C#
.Net
String
Alphabet range in Python
Python
String
List
Alphabet
How to enumerate an enum with String type?
Swift
String
Enums
Enumerate
How to split a string into a list of characters?
Python
String
List
How to interpolate variables in strings in JavaScript, without concatenation?
Javascript
String
Variables
String Interpolation
How do you get a string from a MemoryStream?
.Net
vb.net
String
Memorystream
Does Java have support for multiline strings?
Java
String
Multiline
Converting an integer to a string in PHP
Php
String
Casting
Type Conversion
Integer
How to split a string with any whitespace chars as delimiters
Java
String
Whitespace
Split
Convert int to string?
C#
String
Int
How to convert Java String into byte[]?
Java
Arrays
String
Multi-line string with extra space (preserved indentation)
String
Bash
Shell
Echo
How to nicely format floating numbers to string without unnecessary decimal 0's
Java
String
Floating Point
Format
Double
Can I escape a double quote in a verbatim string literal?
C#
String
Escaping
Literals
Verbatim String
Why are emoji characters like 👩👩👧👦 treated so strangely in Swift strings?
Swift
String
Unicode
Emoji
Is there a simple way to remove multiple spaces in a string?
Python
Regex
String
How to remove all line breaks from a string
Javascript
Regex
String
std::string formatting like sprintf
C++
String
Formatting
Stdstring
C++ Standard-Library
How to remove the last character from a string?
Java
String
String.equals versus ==
Java
String
PHP equivalent of .NET/Java's toString()
Php
String
What is the difference between char s[] and char *s?
C
String
Char
Constants
In Java, how do I check if a string contains a substring (ignoring case)?
Java
String
Substring
Iterating each character in a string using Python
Python
String
Iteration
String concatenation: concat() vs "+" operator
Java
String
Concatenation
Reverse a string in Java
Java
String
Check if multiple strings exist in another string
Python
Arrays
String
Exists
How to get the last char of a string in PHP?
Php
String
How to remove illegal characters from path and filenames?
C#
String
Path
Directory
A quick and easy way to join array elements with a separator (the opposite of split) in Java
Java
Arrays
String
Proper indentation for multiline strings?
Python
String
How to delete a character from a string using Python
Python
String
UPDATE and REPLACE part of a string
Sql
Sql Server
String
Sql Server-2008
Replace
Why does Java's hashCode() in String use 31 as a multiplier?
Java
String
Algorithm
Hash
Any way to replace characters on Swift String?
Swift
String
Check whether a string is not null and not empty
Java
String
String Comparison
How do I replace multiple spaces with a single space in C#?
C#
Regex
String
How to escape % in String.Format?
Java
Android
String
Syntax
How do you reverse a string in-place in JavaScript?
Javascript
String
Reverse
Convert a Unicode string to a string in Python (containing extra symbols)
Python
String
Unicode
Type Conversion
Split string every nth character?
Python
String
Split
How to return a string value from a Bash function
String
Bash
Function
Return Value
How can I check if a string is null or empty in PowerShell?
.Net
String
Powershell
Null
Checking whether a string starts with XXXX
Python
String
String Comparison
How can I process each letter of text using Javascript?
Javascript
String
Static constant string (class member)
C++
String
Class
Static
Constants
How to find all occurrences of a substring?
Python
String
How do I use hexadecimal color strings in Flutter?
String
Flutter
Dart
Colors
Hex
How do I remove diacritics (accents) from a string in .NET?
.Net
String
Diacritics
Change date format in a Java string
Java
String
Date
Formatting
Date Format
How do I remove a substring from the end of a string?
Python
String
What is the difference between \r\n, \r, and \n?
String
Java - Convert integer to string
Java
String
Numbers
Int
Changing one character in a string
Python
String
Optimum way to compare strings in JavaScript?
Javascript
String
Optimization
Comparison
Binary Search
enum to string in modern C++11 / C++14 / C++17 and future C++20
C++
String
Enums
C++17
C++20
Format a Go string without printing?
String
Go
Formatting
String Formatting
Get the last 4 characters of a string
Python
String
How to write character & in android strings.xml
Android
String
Special Characters
How can I pad a String in Java?
Java
String
Padding
How to initialize a list of strings (List<string>) with many string values
C#
String
List
How can I remove a character from a string using JavaScript?
Javascript
String
Replace
Character
How to extract the substring between two markers?
Python
String
Substring
.NET / C# - Convert char[] to string
C#
.Net
Arrays
String
Char
How do I truncate a .NET string?
C#
.Net
String
Truncate
Get nth character of a string in Swift programming language
Swift
String
Collections
Character
Subscript
How to find out if a Python object is a string?
Python
String
Types
Compatibility
Convert JSON string to dict using Python
Python
Json
String
Contains case insensitive
Javascript
String
Case Sensitive
Case Insensitive
Find index of last occurrence of a substring in a string
Python
String
How can I extract a number from a string in JavaScript?
Javascript
Regex
String
Numbers
How do I remove the file suffix and path portion from a path string in Bash?
String
Bash
Filenames
How to sort strings in JavaScript
Javascript
String
Convert a list of characters into a string
Python
String
How to replace all dots in a string using JavaScript
Javascript
String
Replace
How to extract a substring using regex
Java
Regex
String
Text Extraction
Using Enum values as String literals
Java
String
Enums
How to sort a list of strings?
Python
String
Sorting
Reading a file line by line in Go
String
File
Parsing
Go
Line
If strings are immutable in .NET, then why does Substring take O(n) time?
C#
.Net
String
Substring
Time Complexity
How do I tokenize a string in C++?
C++
String
Split
Tokenize
How do I execute a string containing Python code in Python?
Python
String
Exec
How to generate a random, unique, alphanumeric string?
Php
String
Random
Uniqueidentifier
Efficient way to remove ALL whitespace from String?
C#
String
Whitespace
Removing Whitespace
How to convert strings into integers?
Python
String
Integer
How to capitalize the first character of each word in a string
Java
String
Uppercase
Lowercase
Capitalization
How does String substring work in Swift
Swift
String
Range
Substring
How to get character array from a string?
Javascript
Arrays
String
Check if a JavaScript string is a URL
Javascript
String
Url
CharSequence VS String in Java?
Java
String
Charsequence
How to convert String to long in Java?
Java
String
Java string split with "." (dot)
Java
Regex
String
Split
Indexoutofboundsexception
How to check if a String contains another String in a case insensitive manner in Java?
Java
String
Java int to String - Integer.toString(i) vs new Integer(i).toString()
Java
String
Int
Replace a character at a specific index in a string?
Java
String
Replace
Indexing
Character
Differences between C++ string == and compare()?
C++
String
How to capitalize the first letter of a String in Java?
Java
String
Capitalize
How to format a floating number to fixed width in Python
Python
String
Numbers
Number Formatting
How to input a regex in string.replace?
Python
Regex
String
Replace
How to convert a char array back to a string?
Java
Arrays
String
Char
std::string to char*
C++
String
Char
What is the easiest/best/most correct way to iterate through the characters of a string in Java?
Java
String
Iteration
Character
Tokenize
Replace all spaces in a string with '+'
Javascript
String
How do I print the full value of a long string in gdb?
C++
C
String
Debugging
Gdb
Replacing spaces with underscores in JavaScript?
Javascript
String
How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
C++
String
Gcc
Convert string with commas to array
Javascript
Arrays
String
Deserialization
In C#, why is String a reference type that behaves like a value type?
C#
String
Clr
Value Type
Reference Type
Stripping everything but alphanumeric chars from a string in Python
Python
String
Non Alphanumeric
JavaScript - Replace all commas in a string
Javascript
String
Replace
Substitution
What is meant by immutable?
Java
String
Immutability
Which is the preferred way to concatenate a string in Python?
Python
Python 3.x
String
Concatenation
Does swift have a trim method on String?
String
Swift
Trim
How to use GROUP BY to concatenate strings in MySQL?
Sql
Mysql
String
Aggregate
Concatenation
Insert a string at a specific index
Javascript
String
Why is [1,2] + [3,4] = "1,23,4" in JavaScript?
Javascript
Arrays
String
Concatenation
Create Pandas DataFrame from a string
Python
String
Pandas
Csv
Csv Import
How to split a String by space
Java
String
Split
Arrays
Easiest way to read from and write to files
C#
.Net
String
File
File Io
Is a Java string really immutable?
Java
String
Reflection
Immutability
How to tell if a string contains a certain character in JavaScript?
Javascript
String
How to test if string exists in file with Bash?
String
Bash
File
How do I concatenate const/literal strings in C?
C
String
Concatenation
How to remove non-alphanumeric characters?
Php
Regex
String
Comparing two strings, ignoring case in C#
C#
String
Comparison
Equals
How to generate a random string of a fixed length in Go?
String
Random
Go
Find and extract a number from a string
C#
.Net
Regex
String
how to read value from string.xml in android?
Android
String
Layout
How to convert string to boolean php
Php
String
Casting
Boolean
Replace whole line containing a string using Sed
String
Shell
Sed
What is the best way to test for an empty string in Go?
String
Go
Is Empty
How do I concatenate strings?
String
Rust
String Concatenation
How to search a string in multiple files and return the names of files in Powershell?
String
Search
Text
Powershell
Recursion
How to find the length of a string in R
R
String
Unicode
String Length
Format timedelta to string
Python
String
Datetime
Format
Timedelta
When to use StringBuilder in Java
Java
String
Performance
Python strings and integer concatenation
Python
String
Integer
Concatenation
How do I get the last four characters from a string in C#?
C#
String
Escape a string for a sed replace pattern
String
Sed
Escaping
Why would you use String.Equals over ==?
C#
String
Equals
How do I print my Java object without getting "SomeType@2f92e0f4"?
Java
String
Object
Tostring
Extract a single (unsigned) integer from a string
Php
String
Integer
Text Extraction
Using str_replace so that it only acts on the first match?
Php
String
Replacing some characters in a string with another character
String
Bash
Javascript Equivalent to PHP Explode()
Javascript
Php
String
Leading zeros for Int in Swift
String
Swift
Int
Type Conversion
Case-insensitive string comparison in C++
C++
String
How to evaluate a math expression given in string form?
Java
String
Math
How to convert 'binary string' to normal string in Python3?
Python
String
Python 3.x
Binary
How can I remove three characters at the end of a string in PHP?
Php
String
How can I tell if a string repeats itself in Python?
Python
String
Pattern Matching
Determine if string is in list in JavaScript
Javascript
String
List
How can I get the last 7 characters of a PHP string?
Php
String
How do I check if a C++ std::string starts with a certain string, and convert a substring to an int?
C++
String
Parsing
Substring
Startswith
Using C# to check if string contains a string in string array
C#
Arrays
String
Search
Join a list of items with different types as string in Python
Python
String
List
byte[] to hex string
C#
String
Hex
Convert string to integer type in Go?
String
Go
Type Conversion
Array to String PHP?
Php
Arrays
String
Java String split removed empty values
Java
String
Split
Best way to convert an ArrayList to a string
Java
String
Arraylist
How to convert String object to Boolean Object?
Java
String
Boolean
Test if characters are in a string
R
Regex
String
R Faq
What's the best way to build a string of delimited items in Java?
Java
String
Algorithm
Truncate a string to first n characters of a string and add three dots if any characters are removed
Php
String
Ellipsis
Truncation
Generate JSON string from NSDictionary in iOS
Ios
Objective C
Json
String
How to use string.replace() in python 3.x
Python
Python 3.x
String
Replace
Remove all special characters, punctuation and spaces from string
Python
Regex
String
Shell script - remove first and last quote (") from a variable
String
Bash
Shell
Unix
Sed
Converting string to Date and DateTime
Php
String
Datetime
Date
Serialize an object to string
C#
String
Serialization
Xml Serialization
How to check if a string contains an element from a list in Python
Python
String
If Statement
Remove all occurrences of char from string
Java
String
Character
Extracting the last n characters from a string in R
R
String
Substring
Read and write a String from text file
Swift
String
File Io
Standard way to embed version into Python package?
Python
String
Package
How to parse a string into a nullable int
C#
.Net
String
.Net 3.5
Nullable
Find string between two substrings
String
Python
Substring
Determine if a String is an Integer in Java
Java
String
Int
Splitting on last delimiter in Python string?
Python
String
List
Parsing
Split
Converting string to title case
C#
String
How do I put a variable’s value inside a string?
Python
String
Variables
Create a Path from String in Java7
String
Path
Nio
Java 7
How to match a String against string literals?
String
Match
Rust
Find out if string ends with another string in C++
C++
String
Ends With
What is the difference between String.Empty and "" (empty string)?
.Net
Double Quotes
String
How do I split a multi-line string into multiple lines?
Python
String
Split
How to add new elements to an array?
Java
Arrays
String
Remove new lines from string and replace with one empty space
Php
Regex
String
How to use java.String.format in Scala?
Java
String
Scala
Format
How do I check if a given Python string is a substring of another one?
Python
String
Substring
Replace spaces with dashes and make all letters lower-case
Javascript
String
Replace
Delete last char of string
C#
String
Char
Most efficient way to concatenate strings?
C#
.Net
String
Optimization
Are parameters in strings.xml possible?
Android
Dynamic
Parameters
String
Optional
Concatenate a vector of strings/character
R
String
R Faq
How to get a string after a specific substring?
Python
String
Substring
Java how to replace 2 or more spaces with single space in string and delete leading and trailing spaces
Java
Regex
String
Replace
Convert array of integers to comma-separated string
C#
Arrays
String
What is the difference between a string and a byte string?
Python
String
Character
Byte
Is it better practice to use String.format over string Concatenation in Java?
Java
String
Concatenation
string.format
Removing trailing newline character from fgets() input
C
String
Gcc
Newline
Fgets
Convert String to double in Java
Java
String
Casting
Double
Type Conversion
How to convert an int to string in C?
C
String
Integer
Best way to replace multiple characters in a string?
Python
String
Replace
Split a comma-delimited string into an array?
Php
Arrays
String
Csv
Explode
Insert string at specified position
Php
String
std::string length() and size() member functions
C++
String
Stl
Size
How to convert / cast long to String?
Java
String
Type Conversion
Long Integer
How do I create an array of strings in C?
C
Arrays
String
Is there an alternative to string.Replace that is case-insensitive?
C#
.Net
String
.Net 2.0
Replace
How to convert a string to integer in C?
C
String
Atoi
How to convert a String to CharSequence?
Java
String
Charsequence
getString Outside of a Context or Activity
Java
Android
String
Android Resources
Android Context
Split data frame string column into multiple columns
R
String
Dataframe
Split
R Faq
How can I format a number into a string with leading zeros?
C#
String
String Formatting
Convert a String In C++ To Upper Case
C++
String
Is it a good practice to use an empty URL for a HTML form's action attribute? (action="")
Forms
Web Standards
String
Html
Scala: join an iterable of strings
String
Scala
Convert columns to string in Pandas
Python
Pandas
String
Type Conversion
Getting the first character of a string with $str[0]
Php
String
Substring
How exactly is std::string_view faster than const std::string&?
C++
String
C++17
String View
Is there a JavaScript function that can pad a string to get to a determined length?
Javascript
String
Is there a way to get rid of accents and convert a whole string to regular letters?
Java
String
Diacritics
Why is there no Char.Empty like String.Empty?
C#
.Net
String
Char
Base Class-Library
How to split one string into multiple strings separated by at least one space in bash shell?
Bash
Shell
String
Split
How to search and replace text in a file?
Python
Python 3.x
String
File
Replace
Sprintf equivalent in Java
Java
String
Formatting
What's the rationale for null terminated strings?
C++
C
String
Null Terminated
How to Convert Boolean to String
Php
String
Why is there no String.Empty in Java?
Java
String
Most efficient way to remove special characters from string
C#
String
Convert array values from string to int?
Php
Arrays
String
Integer
Explode
How can I split a string with a string delimiter?
C#
String
Split
Why the switch statement cannot be applied on strings?
C++
String
Switch Statement
string.charAt(x) or string[x]?
Javascript
String
Convert array of strings into a string in Java
Java
Arrays
String
StringUtils.isBlank() vs String.isEmpty()
Java
String
String Utils
What does $ mean before a string?
C#
String
How do I turn a String into a InputStreamReader in java?
Java
String
Stream
Passing base64 encoded strings in URL
Php
Url
String
Get
Base64
Strip Leading and Trailing Spaces From Java String
Java
String
Replace
How to convert a char array to a string?
C++
String
Char
Arrays
Get Substring between two characters using javascript
Javascript
Regex
String
Substring
Check if string ends with one of the strings from a list
Python
String
List
Check if string begins with something?
Javascript
String
Match
How to remove line breaks from a file in Java?
Java
String
Newline
Line Breaks
How to remove the leading character from a string?
Php
String
Trim
How to remove leading zeros from alphanumeric text?
Java
String
Alphanumeric
What is the Swift equivalent of isEqualToString in Objective-C?
String
Swift
Ruby, remove last N characters from a string?
Ruby
String
Java String remove all non numeric characters but keep the decimal separator
Java
String
Character
Decimal
Difference between String replace() and replaceAll()
Java
String
Replace
What's does the dollar sign ($"string") do?
C#
String
Replace one character with another in Bash
String
Bash
Replace
Differences in string compare methods in C#
C#
String
Comparison
How to convert Strings to and from UTF8 byte arrays in Java
Java
String
Encoding
Character Encoding
Replace multiple strings with multiple other strings
Javascript
node.js
Regex
String
Replace
Remove last character from string. Swift language
String
Character
Swift
Are JavaScript strings immutable? Do I need a "string builder" in JavaScript?
Javascript
String
How to replace whitespaces with underscore?
Python
String
Java: splitting a comma-separated string but ignoring commas in quotes
Java
Regex
String
Best way to specify whitespace in a String.Split operation
C#
String
Swift - Split string over multiple lines
String
Swift
Repeat String - Javascript
Javascript
String
Check if a string contains a number
Python
String
Left padding a String with Zeros
Java
String
Padding
Split large string in n-size chunks in JavaScript
Javascript
Regex
String
Split
How many bytes does one Unicode character take?
String
Language Agnostic
Unicode
Encoding
How can I split a string into segments of n characters?
Javascript
Arrays
String
Split
PHP - concatenate or directly insert variables in string
Php
String
Variables
Concatenation
Java - removing first character of a string
Java
String
Substring
How do I change the string representation of a Python class?
Python
String
Python 3.x
Printing
How to set the part of the text view is clickable
Android
String
Textview
Clickablespan
How to access random item in list?
C#
Arrays
String
Random
What is Java String interning?
Java
String
String Interning
What is the difference between a "line feed" and a "carriage return"?
String
Newline
Line Breaks
Carriage Return
Linefeed
How to convert an int to a hex string?
Python
String
Hex
Int
Check if a string contains a substring in SQL Server 2005, using a stored procedure
Sql Server
String
Tsql
Stored Procedures
Sql Server-2005
How to check if a string array contains one string in JavaScript?
Javascript
Arrays
String
Testing
How to convert object array to string array in Java
Java
Arrays
String
TypeError: 'str' does not support the buffer interface
Python
String
Gzip
str.startswith with a list of strings to test for
Python
String
List
Read binary file as string in Ruby
Ruby
String
File Io
In Java, how do I parse XML as a String instead of a file?
Java
Xml
String
File
Parsing
Get string character by index
Java
String
Swift apply .uppercaseString to only the first letter of a string
Ios
Swift
String
Ios8 Extension
Converting camel case to underscore case in ruby
Ruby on-Rails
Ruby
String
Formatting
Case Conversion
How to trim a string to N chars in Javascript?
Javascript
String
Trim
String vs string in C#
C#
.Net
Performance
String
Types
How do I parse a string with a decimal point to a double?
C#
String
Parsing
Double
Remove last character from C++ string
C++
String
Substring
How to select last two characters of a string
Javascript
String
What is the maximum possible length of a .NET string?
.Net
String
Limits
Adding a newline into a string in C#
C#
String
How can I put strings in an array, split by new line?
Php
String
Line Breaks
Checking if a string can be converted to float in Python
Python
String
Type Conversion
Utils to read resource text file to String (Java)
Java
String
Text
Resources
String.Replace ignoring case
C#
String
How can I check if a single character appears in a string?
Java
Validation
String
Character
Match two strings in one line with grep
Regex
Linux
String
Grep
Regex to match string containing two names in any order
Regex
String
Return string without trailing slash
Javascript
String
Trailing Slash
Reference one string from another string in strings.xml?
Android
Xml
String
Generate random alphanumeric string in Swift
String
Swift
Splitting a string into chunks of a certain size
C#
String
How to check if a string contains text from an array of substrings in JavaScript?
Javascript
Arrays
String
Substring
Contains
Count character occurrences in a string in C++
C++
String
Pattern Matching
Reading a space-delimited string into an array in Bash
Arrays
String
Bash
Shell
Escape double quotes in a string
C#
String
Double Quotes
Check if a string contains another string
String
Vba
Remove file extension from a file name string
C#
String
Parsing
Read/Write String from/to a File in Android
Java
Android
String
File Io
Fastest way to remove first char in a String
C#
String
Substring
Performance
Trim
Difference between string object and string literal
Java
String
String Literals
Count number of occurrences of a substring in a string
Python
String
Java: how to initialize String[]?
Java
String
Initialization
Convert a list to a string in C#
C#
.Net
String
List
TypeError: not all arguments converted during string formatting python
Python
String
Python 3.x
Typeerror
Output Formatting
How do I convert a string to a double in Python?
Python
String
Double
Remove spaces from std::string in C++
C++
String
Stl
Whitespace
What does ${} (dollar sign and curly braces) mean in a string in JavaScript?
Javascript
String
Variables
Concatenation
Convert string to Enum in Python
Python
String
Serialization
Enums
Type Conversion
How to write very long string that conforms with PEP8 and prevent E501
Python
String
Pep8
What's the best way to check if a String represents an integer in Java?
Java
String
Int
How can I convert comma separated string into a List<int>
C#
.Net
String
List
Android Split string
Java
Android
String
How do I format a string using a dictionary in python-3.x?
Python
String
Dictionary
Python 3.x
How to format strings in Java
Java
String
String Formatting
How can I remove a substring from a given String?
Java
String
What is the syntax for a multiline string literal?
String
Rust
How to check if a string in Python is in ASCII?
Python
String
Unicode
Ascii
How to read an entire file to a string using C#?
C#
String
File Io
.Net 3.5
How do I split a string by a multi-character delimiter in C#?
C#
.Net
String
Convert XmlDocument to String
C#
String
Escaping
Quotes
Xmldocument
How to split a delimited string in Ruby and convert it to an array?
Arrays
Ruby
String
Split
Remove multiple whitespaces
Php
Regex
String
Preg Replace
Whitespace
Are string.Equals() and == operator really same?
C#
String
PHP prepend leading zero before single digit number, on-the-fly
Php
String
Numbers
Zero
Why a function checking if a string is empty always returns true?
Php
String
Validation
Remove the first character of a string
Python
String
Check if a string has a certain piece of text
Javascript
String
Java: Getting a substring from a string starting after a particular character
Java
String
Substring
Smart way to truncate long strings
Javascript
String
Truncation
How to remove all white space from the beginning or end of a string?
C#
String
Trim
Removing Whitespace
How to convert CharSequence to String?
Java
String
Charsequence
How can I read a whole file into a string variable
String
File
Go
How do I read an entire file into a std::string in C++?
C++
String
File Io
Repeat string to certain length
String
Python
Repeat
How to format a Java string with leading zero?
Java
String
Formatting
Format
Regular Expression to get a string between parentheses in Javascript
Javascript
Regex
String
Should I use Java's String.format() if performance is important?
Java
String
Performance
String Formatting
Micro Optimization
PHP, get file name without file extension
Php
File
String
Regex how to match an optional character
Regex
String
Operators
Java String - See if a string contains only numbers and not letters
Java
String
If Statement
Is it possible to update a localized storyboard's strings?
Ios
Xcode
String
Localization
Storyboard
Replace part of a string with another string
C++
String
Replace
Substring
Std
How to concatenate strings with padding in sqlite
String
Sqlite
String Concatenation
Leading Zero
How to split a comma-separated string?
Java
String
Split
Good Python modules for fuzzy string comparison?
Python
String
String Comparison
Fuzzy Comparison
How to create streams from string in Node.Js?
Javascript
String
node.js
Stream
Inputstream
Remove first 4 characters of a string with PHP
Php
String
Character
Immutability of Strings in Java
Java
String
Immutability
Wrap long lines in Python
Python
String
Regular expression to get a string between two strings in Javascript
Javascript
Regex
String
Why is the default value of the string type null instead of an empty string?
C#
String
Default Value
What's the difference between a character, a code point, a glyph and a grapheme?
String
Unicode
Terminology
.NET Format a string with fixed spaces
.Net
String
Why can't Python's raw string literals end with a single backslash?
Python
String
Literals
Rawstring
String to object in JS
Javascript
String
Object
Get file name from URI string in C#
C#
String
Uri
Filenames
How do I check if there are duplicates in a flat list?
Python
String
List
Duplicates
How do I apply the for-each loop to every character in a String?
Java
String
Loops
Foreach
Char
Haskell: Converting Int to String
String
Haskell
Int
Casting
Why is conversion from string constant to 'char*' valid in C but invalid in C++
C++
C
String
C++11
Char
Why does Oracle 9i treat an empty string as NULL?
Sql
Oracle
Null
String
Split a string by a delimiter in python
Python
String
List
Split
Convert float to String and String to float in Java
Java
String
Types
Number Formatting
Type Conversion
AssertContains on strings in jUnit
Java
String
Junit
Assert
Java: Check if enum contains a given string?
Java
String
Enums
How to check a string for specific characters?
Python
String
string.IsNullOrEmpty(string) vs. string.IsNullOrWhiteSpace(string)
C#
.Net
String
How to convert/parse from String to char in java?
Java
String
Parsing
Char
How do I properly compare strings in C?
C
String
Strcmp
How to convert a color integer to a hex String in Android?
Java
Android
String
Colors
Hex
Removing a list of characters in string
Python
String
List
Replace
How can I print variable and string on same line in Python?
Python
String
Variables
Printing
Why is String.chars() a stream of ints in Java 8?
Java
String
Java 8
What is the difference between "text" and new String("text")?
Java
String
Python __str__ versus __unicode__
Python
String
Unicode
Conventions
Simpler way to create dictionary of separate variables?
Python
String
Variables
String, StringBuffer, and StringBuilder
Java
String
Oop
Stringbuilder
Python csv string to array
Python
String
Arrays
Csv
Convert String to Uri
Java
Android
String
Uri
Extract digits from a string in Java
Java
String
How to build query string with Javascript
Javascript
String
Forms
Get
Parse query string into an array
Php
Arrays
String
Comparing strings with == which are declared final in Java
Java
String
Final
How do I remove leading whitespace in Python?
Python
String
Whitespace
Trim
MySQL - length() vs char_length()
Mysql
String
String is immutable. What exactly is the meaning?
Java
String
Immutability
Remove substring from the string
Ruby
String
List of strings to one string
C#
String
Performance
Functional Programming
How do I get the last character of a string?
Java
String
Substring
Case insensitive replace
Python
String
Case Insensitive
Verifying that a string contains only letters in C#
C#
String
How to append a char to a std::string?
C++
String
What exactly does the .join() method do?
Python
List
String
Capitalize words in string
Javascript
String
Capitalization
Check if a word is in a string in Python
Python
String
Fastest way to check if string contains only digits in C#
C#
String
Performance
How to add a string in a certain position?
Python
String
Check whether an input string contains a number in javascript
Javascript
String
Numbers
Validation
Convert character to ASCII numeric value in java
Java
String
Ascii
Can I convert a C# string value to an escaped string literal?
C#
String
Escaping
How can I force a long string without any blank to be wrapped?
Html
Css
String
Xul
Word Wrap
How do I put variables inside javascript strings?
Javascript
String
node.js
Multi-line strings in PHP
Php
String
How do I parse a string into a number with Dart?
String
Parsing
Dart
How can I match a string with a regex in Bash?
Regex
String
Bash
Finding index of character in Swift String
String
Swift
What method in the String class returns only the first N characters?
C#
.Net
String
Character
Add spaces before Capital Letters
C#
Regex
String
Is Java's assertEquals method reliable?
Java
String
Junit
Junit4
Curly braces in string in PHP
Php
String
C#: how to get first char of a string?
C#
String
Convert String to Type in C#
C#
.Net
String
Types
How to know that a string starts/ends with a specific string in jQuery?
Javascript
Jquery
String
The split() method in Java does not work on a dot (.)
Java
String
Split
Check substring exists in a string in C
C
String
Convert JSON String to JSON Object c#
C#
asp.net
Json
String
Parsing
Swift extract regex matches
Ios
Regex
String
Swift
What is the equivalent of the join operator over a vector of Strings?
String
Rust
Figure out size of UILabel based on String in Swift
Ios
Iphone
String
Swift3
Uilabel
Convert camelCaseText to Title Case Text
Javascript
Regex
String
Replace multiple characters in a C# string
C#
.Net
String
jQuery - replace all instances of a character in a string
Jquery
String
Replace
Regex not operator
Regex
String
How to remove the first and the last character of a string
Javascript
String
Find column whose name contains a specific string
Python
Python 3.x
String
Pandas
Dataframe
Strings as Primary Keys in SQL Database
Sql
Database
Database Design
String
Primary Key
string.ToLower() and string.ToLowerInvariant()
C#
.Net
String
Splitting a Java String by the pipe symbol using split("|")
Java
Regex
String
bash : Bad Substitution
String
Bash
Ubuntu
Substitution
C++ Convert string (or char*) to wstring (or wchar_t*)
C++
String
Wstring
Bytes of a string in Java
Java
String
Parse string to DateTime in C#
C#
.Net
String
Parsing
Datetime
Replace multiple whitespaces with single whitespace in JavaScript string
Javascript
String
Trim
How do I create a random alpha-numeric string in C++?
C++
String
Random
Casting to string in JavaScript
Javascript
Jquery
String
How to parse JSON string in Typescript
Javascript
Json
String
Typescript
Why isn't String.Empty a constant?
.Net
String
Readonly
Constants
python: SyntaxError: EOL while scanning string literal
Python
String
String Literals
Why is String immutable in Java?
Java
String
Remove ✅, 🔥, ✈ , ♛ and other such emojis/images/signs from Java strings
Java
String
Emoji
Converting Integer to String with comma for thousands
Java
String
Integer
PHP substring extraction. Get the string before the first '/' or the whole string
Php
String
Substring
What is the difference between printf() and puts() in C?
C
String
Output
Printf
Puts
Converting a string to an integer on Android
Java
Android
String
Integer
Android Edittext
How can I check if a var is a string in JavaScript?
Javascript
String
Variable Types
Why can't strings be mutable in Java and .NET?
Java
.Net
String
Mutable
String comparison: InvariantCultureIgnoreCase vs OrdinalIgnoreCase?
C#
String
convert string array to string
C#
Arrays
String
Create a string of variable length, filled with a repeated character
Javascript
Html
String
How do I concatenate strings in Swift?
String
Swift
Concat
String Concatenation
How to Truncate a string in PHP to the word closest to a certain number of characters?
Php
String
Function
What is the canonical way to trim a string in Ruby without creating a new string?
Ruby
String
Ruby array to string conversion
Ruby
Arrays
String
How to test if a string contains one of the substrings in a list, in pandas?
Python
String
Pandas
Dataframe
Match
How to reverse a string that contains complicated emojis?
Javascript
String
Emoji
What is the difference between indexOf() and search()?
Javascript
String
How do I remove the first characters of a specific column in a table?
Sql
Sql Server
String
Tsql
How to create a date object from string in javascript
Javascript
String
Date
'str' object does not support item assignment
Python
String
How to sort the letters in a string alphabetically in Python
Python
String
add a string prefix to each value in a string column using Pandas
Python
String
Pandas
Dataframe
Converting an int to a binary string representation in Java?
Java
String
Binary
Int
Create a hexadecimal colour based on a string with JavaScript
Javascript
String
Colors
Hex
What is the difference between a mutable and immutable string in C#?
C#
String
Double vs single quotes
Ruby
String
Quotes
Double Quotes
Single Quotes
How can I convert string date to NSDate?
Ios
String
Swift
Nsdate
How should I remove all the leading spaces from a string? - swift
String
Swift
Why .NET String is immutable?
C#
.Net
String
Immutability
How do I trim leading/trailing whitespace in a standard way?
C
String
Whitespace
Trim
Is it good practice to use java.lang.String.intern()?
Java
String
Split string in Lua?
String
Lua
std::cin input with spaces?
C++
String
User Input
Space
Cin
Python Remove last 3 characters of a string
Python
String
What is the fastest substring search algorithm?
C
Algorithm
String
Substring
Remove unwanted parts from strings in a column
Python
String
Pandas
Dataframe
How do I trim a file extension from a String in Java?
Java
String
Process
When should we use intern method of String on String literals
Java
String
String Interning
Why does appending "" to a String save memory?
Java
Performance
String
Memory
How to replace part of string by position?
C#
String
Replace
How to display a float with two decimal places?
Python
String
Floating Point
Why is it discouraged to accept a reference to a String (&String), Vec (&Vec), or Box (&Box) as a function argument?
String
Reference
Rust
Borrowing
Python: most idiomatic way to convert None to empty string?
String
Python
Idioms
Case insensitive 'in'
Python
String
List
Case Insensitive
Capitalize the first letter of both words in a two word string
R
String
Title Case
How to convert integer to string in C?
C
String
Integer
Type Conversion
How do I convert a double into a string in C++?
C++
String
Double
Remove leading comma from a string
Javascript
Arrays
String
How to split a string in Haskell?
String
Haskell
Checking if a string array contains a value, and if so, getting its position
C#
Arrays
String
printf with std::string?
C++
String
Namespaces
Printf
Std
How can I capitalize the first letter of each word in a string using JavaScript?
Javascript
String
Title Case
How can I String.Format a TimeSpan object with a custom format in .NET?
C#
.Net
String
Time
Formatting
In Python, how do I create a string of n characters in one line of code?
Python
String
How do I get the first n characters of a string without checking the size or going out of bounds?
Java
String
Indexoutofboundsexception
Include constant in string without concatenating
Php
String
Constants
Concatenation
C# Double - ToString() formatting with two decimal places but no rounding
C#
String
Double
What is the easiest way to remove the first character from a string?
Ruby
String
Java Byte Array to String to Byte Array
Java
String
Byte
Converting string from snake_case to CamelCase in Ruby
Ruby on-Rails
Ruby
String
split string only on first instance - java
Java
String
Split
C# string reference type?
C#
String
Reference
Types
Using multiple arguments for string formatting in Python (e.g., '%s ... %s')
Python
String
Syntax
Integer.valueOf() vs. Integer.parseInt()
Java
String
Integer
Decimal Point
Base64 length calculation?
String
Base64
Padding
Formula
?? Coalesce for empty string?
C#
String
Coalesce
Null Coalescing-Operator
Split string with delimiters in C
C
String
Split
How do you reverse a string in place in C or C++?
C++
C
String
Reverse
C# declare empty string array
C#
Arrays
String
How to change the datetime format in Pandas
Python
String
Pandas
Datetime
Strftime
Find and replace string values in list
Python
String
List
How to remove all whitespace from a string?
R
Regex
String
R Faq
Explain the use of a bit vector for determining if all characters are unique
Java
String
Bit Manipulation
Bitvector
Trim specific character from a string
Javascript
String
Trim
Test if string is a guid without throwing exceptions?
C#
String
Parsing
Guid
What is the difference between encode/decode?
Python
String
Unicode
Character Encoding
Python 2.x
Best Practices: working with long, multiline strings in PHP?
Php
String
How to check if my string is equal to null?
Java
String
Null
Equals
Conditional Operator
How to compare strings ignoring the case
Ruby
String
String Comparison
Removing the first 3 characters from a string
Java
String
Get the (last part of) current directory name in C#
C#
String
Filepath
Split string on the first white space occurrence
Javascript
Regex
String
Convert Swift string to array
Ios
Arrays
Swift
String
Better techniques for trimming leading zeros in SQL Server?
Sql
Sql Server
Sql Server-2005
Tsql
String
Passing a String by Reference in Java?
Java
String
Pass by-Reference
What is the most efficient string concatenation method in Python?
Python
String
How to check that a string is an int, but not a double, etc.?
Php
String
Casting
Types
Int
How can I remove part of a string in PHP?
Php
String
How do I find if a string starts with another string in Ruby?
Ruby
String
Startswith
Converting an int to std::string
C++
String
Int
Python code to remove HTML tags from a string
Python
Html
Xml
String
Parsing
How Do I Convert an Integer to a String in Excel VBA?
Vba
String
Type Conversion
Integer
Most efficient way to concatenate strings in JavaScript?
Javascript
String
Performance
Concatenation
String output: format or concat in C#?
C#
String
Coding Style
string.format
How to format a string as a telephone number in C#
C#
String
Formatting
Phone Number
How to get a variable value if variable name is stored as string?
String
Bash
What's the difference between istringstream, ostringstream and stringstream? / Why not use stringstream in every case?
C++
String
Stringstream
Ostringstream
Istringstream
Fastest way to iterate over all the chars in a String
Java
String
Performance
Char
Iteration
Test if a string contains any of the strings from an array
Java
String
If Statement
case-insensitive list sorting, without lowercasing the result?
Python
String
List
Sorting
Case Insensitive
How to check if variable is string with python 2 and 3 compatibility
Python
String
Python 3.x
Python 2.x
How to use sed/grep to extract text between two words?
String
Bash
Sed
Grep
String contains - ignore case
Java
String
Contains
Case Insensitive
rreplace - How to replace the last occurrence of an expression in a string?
Python
String
How to extract base URL from a string in JavaScript?
Javascript
Regex
String
Url
How to convert a string with comma-delimited items to a list in Python?
Python
String
List
Get host domain from URL?
C#
String
Url
Httpwebrequest
Uri
Case insensitive comparison of strings in shell script
String
Shell
Compare
Case Insensitive
Concatenating null strings in Java
Java
String
Concatenation
String Concatenation
Trim a string based on the string length
Java
String
Meaning of acronym SSO in the context of std::string
C++
String
Optimization
When splitting an empty string in Python, why does split() return an empty list while split('\n') returns ['']?
Python
String
Algorithm
Parsing
Split
Search for a string in Enum and return the Enum
C#
String
Enumeration
Remove portion of a string after a certain character
Php
String
When to use %r instead of %s in Python?
Python
String
String Formatting
Difference between String#equals and String#contentEquals methods
Java
String
Equality
How to change string into QString?
C++
String
Qt
Qstring
How to get the size of a string in Python?
Python
String
String Length
How to get everything after a certain character?
Php
String
How to extract a string using JavaScript Regex?
Javascript
Regex
String
Icalendar
How to remove all leading zeroes in a string
Php
String
How to get the number of characters in a string
String
Go
Character
String Length
Ruby capitalize every word first letter
Ruby
String
How to convert CFStringRef to NSString?
Cocoa
String
Cfstring
Why use String.Format?
C#
String
vb.net
string.format
Android: How can I Convert String to Date?
Android
String
Date
Casting
How can I check if character in a string is a letter? (Python)
Python
String
Find
Multiline f-string in Python
Python
String
Python 3.6
F String
Remove characters after specific character in string, then remove substring?
C#
.Net
String
How can I combine two strings together in PHP?
Php
String
Variables
Combinations
SQL order string as number
Mysql
Sql
String
Numbers
Sql Order-By
Print a string as hexadecimal bytes
Python
String
Hex
Ordinal Indicator
PHP string "contains"
Php
Regex
String
Difference between IsNullOrEmpty and IsNullOrWhiteSpace in C#
C#
String
Difference
Isnullorempty
String Function
How to initialise a string from NSData in Swift
String
Swift
Cocoa
Nsdata
Swift: Convert enum value to String?
String
Enums
Swift
IndexOf function in T-SQL
Sql
Sql Server
Tsql
String
How do I convert a byte array to Base64 in Java?
Java
Arrays
String
Should I use string.isEmpty() or "".equals(string)?
Java
String
Why is the shovel operator (<<) preferred over plus-equals (+=) when building a string in Ruby?
Ruby
String
Optimization
Compression/Decompression string with C#
C#
String
.Net 2.0
Compression
warning: 'characters' is deprecated: Please use String or Substring directly
Ios
String
Substring
Swift4
xcode9.1
What is the simplest way to convert a Java string from all caps (words separated by underscores) to CamelCase (no word separators)?
Java
Regex
String
Difference between null and empty ("") Java String
Java
String
Null
Equals
Referenceequals
How to insert a character in a string at a certain position?
Java
String
Casting
No startswith,endswith functions in Go?
String
Go
Convert floating point number to a certain precision, and then copy to string
Python
String
Floating Point
How do I concatenate multiple C++ strings on one line?
C++
String
Compiler Errors
Concatenation
One Liner
How can I trim beginning and ending double quotes from a string?
Java
String
Trim
Java String to SHA1
Java
String
Sha1
Why use symbols as hash keys in Ruby?
Ruby
String
Hashmap
Symbols
Android: android.content.res.Resources$NotFoundException: String resource ID #0x5
Android
String
File
How can I transform string to UTF-8 in C#?
C#
String
Encoding
Utf 8
Character Encoding
Speed up millions of regex replacements in Python 3
Python
Regex
String
Performance
Replace
Is there a C# case insensitive equals operator?
C#
.Net
String
Operators
Case Insensitive
Remove characters except digits from string using Python?
Python
String
How to get the first word of a sentence in PHP?
Php
String
Extract
Text Segmentation
Add zero-padding to a string
C#
String
Padding
Remove a string from the beginning of a string
Php
String
How to convert a string to date in MySQL?
Mysql
String
Date
Replacing instances of a character in a string
Python
String
Best way to concatenate List of String objects?
Java
String
List
Best way to split string into lines
C#
String
Syntax
Multiline
C++ deprecated conversion from string constant to 'char*'
C++
String
Explicit Constructor
Create a string with n characters
Java
String
Stringbuffer
String to Dictionary in Python
Python
String
Json
Facebook
Dictionary
Reuse a parameter in String.format?
Java
String
String Formatting
Removing numbers from string
Python
String
String.valueOf() vs. Object.toString()
Java
String
Ruby on Rails: how to render a string as HTML?
Html
Ruby on-Rails
Ruby
String
Accessing last x characters of a string in Bash
String
Bash
Extract
How to unescape HTML character entities in Java?
Java
Html
String
Eclipse
Decode
How do I convert CamelCase into human-readable names in Java?
Java
Regex
String
Pascalcasing
Humanize
How do I do a multi-line string in node.js?
String
node.js
Multiline
How to check if a string contains only digits in Java
Java
String
Best way to convert list to comma separated string in java
Java
String
List
Collections
Set
n-grams in python, four, five, six grams?
Python
String
Nltk
N Gram
How does this print "hello world"?
Java
String
Bit Shift
Print very long string completely in pandas dataframe
Python
String
Pandas
Options
Get PHP class property by string
Php
String
Oop
Properties
How many characters can a Java String have?
Java
String
Regex empty string or email
Regex
Email
String
How to get the first five character of a String
C#
asp.net
String
Char
Safe integer parsing in Ruby
Ruby
String
Exception
Integer
String Parsing
Java String array: is there a size of method?
Java
Arrays
String
How do I concatenate two strings in C?
C
String
How to split a string and assign it to variables
String
Go
Split
Difference between String trim() and strip() methods in Java 11
Java
String
Trim
Strip
Java 11
How to convert a string of bytes into an int?
Python
Arrays
String
How do you allow spaces to be entered using scanf?
C
String
Printf
Scanf
Whitespace
How can I format a String number to have commas and round?
Java
String
Numbers
Decimal
Number Formatting
Different font size of strings in the same TextView
Android
String
Textview
Text Size
Generate list of all possible permutations of a string
String
Language Agnostic
Cross Platform
Replace last occurrence of a string in a string
Php
String
Replace
Last Occurrence
Mixing a PHP variable with a string literal
Php
String
Variables
Check if a value is in an array (C#)
C#
.Net
Arrays
String
How to tell if a string is not defined in a Bash shell script
Bash
Shell
Scripting
String
Null
How to remove the left part of a string?
Python
String
Get Substring - everything before certain char
C#
String
Substring
Remove the string on the beginning of an URL
Javascript
String
How can I replace two strings in a way that one does not end up replacing the other?
Java
String
Replace
String's Maximum length in Java - calling length() method
Java
String
Find the nth occurrence of substring in a string
Python
String
Substring
How to remove leading zeros using C#
C#
String
IEnumerable<char> to string
C#
.Net
String
Ienumerable
Join strings with a delimiter only if strings are not null or empty
Javascript
String
Python: Using .format() on a Unicode-escaped string
Python
String
Unicode
Python 2.x
Convert javascript array to string
Javascript
Jquery
Arrays
String
Hashing a string with Sha256
C#
String
Hash
Sha256
How to convert 'false' to 0 and 'true' to 1?
Python
String
Integer
How do you check in python whether a string contains only numbers?
Python
String
Numbers
How can I find the first occurrence of a sub-string in a python string?
Python
String
Ruby: How to convert a string to boolean
Ruby
String
Boolean
Type Conversion
Python string class like StringBuilder in C#?
Python
String
What does preceding a string literal with "r" mean?
Python
String
Syntax
Literals
Rawstring
How to remove newlines from beginning and end of a string?
Java
String
Line
Blank Line
Calling a function from a string in C#
C#
.Net
Php
String
Function Calls
Read String line by line
Java
String
Java: Get last element after split
Java
String
Split
In javascript, is an empty string always false as a boolean?
Javascript
String
Boolean
How can I determine if a String is non-null and not only whitespace in Groovy?
String
Groovy
Whitespace
How can a string be initialized using " "?
Java
String
Using Java to find substring of a bigger string using Regular Expression
Java
Regex
String
How can I check if string contains characters & whitespace, not just whitespace?
Javascript
String
Whitespace
How to URL encode a string in Ruby
Ruby on-Rails
Ruby
String
Uri
Urlencode
Add ... if string is too long PHP
Php
String
Strlen
extract part of a string using bash/cut/split
String
Bash
Sort a single String in Java
Java
String
Sorting
Escape special characters in a Python string
Python
String
Escaping
How do I split a string into an array of characters?
Javascript
String
Conveniently Declaring Compile-Time Strings in C++
C++
String
C++11
Metaprogramming
User Defined-Literals
How to get the last character of a string in a shell?
String
Bash
Shell
How would I get everything before a : in a string Python
Python
Regex
String
Split
Ignoring accented letters in string comparison
C#
String
Localization
sprintf like functionality in Python
Python
String
Java String new line
Java
String
Newline
Python: TypeError: cannot concatenate 'str' and 'int' objects
Python
String
Printing
Integer
Multiline strings in VB.NET
String
vb.net
How to correctly sort a string with a number inside?
Python
Regex
Sorting
String
Remove all special characters from a string in R?
Regex
String
R
Character
How to remove single character from a String
Java
String
Objective-C - Remove last character from string
Ios
Objective C
String
Cocoa
Cocoa Touch
Parsing a comma-delimited std::string
C++
String
Parsing
Stl
Csv
Remove all non-numeric characters from a string; [^0-9] doesn't match as expected
Php
Regex
String
Phone Number
Sanitization
How to convert array values to lowercase in PHP?
Php
Arrays
String
Lowercase
How to capitalize the first letter of a string in dart?
String
Flutter
Dart
Letter
Capitalize
Generate a random alphanumeric string in Cocoa
Objective C
Cocoa
String
Random
Alphanumeric
How can I order a List<string>?
C#
String
List
How to remove leading and trailing zeros in a string? Python
Python
String
Trailing
Chomp
Leading Zero
stringstream, string, and char* conversion confusion
C++
String
Memory
Stringstream
Iterate over each line in a string in PHP
Php
String
String formatting named parameters?
Python
String
Syntax
Why I cannot cout a string?
C++
String
Cout
How do I write data into CSV format as string (not file)?
Python
String
Csv
Python TypeError: not enough arguments for format string
Python
String
Format
Typeerror
Check string for nil & empty
Swift
String
Optional
Is Empty
PHP - iterate on string characters
Php
String
Character Arrays
Create nice column output in python
Python
String
List
write() versus writelines() and concatenated strings
Python
String
File Io
Python 2.x
Convert time.Time to string
String
Time
Go
Occurrences of substring in a string
Java
String
Find index of last occurrence of a sub-string using T-SQL
Sql Server
String
Tsql
Search
Sql Server-2000
How do I check that a Java String is not all whitespaces?
Java
String
Whitespace
BestPractice - Transform first character of a string into lower case
C#
.Net
String
How to remove duplicate white spaces in string using Java?
Java
String
Whitespace
Extract a substring from a string in Ruby using a regular expression
Ruby
Regex
String
Substring
How to check if character is a letter in Javascript?
Javascript
String
Character
Letter
How to print like printf in Python3?
Python
String
Python 3.x
Remove excess whitespace from within a string
Php
String
Java: method to get position of a match in a String?
Java
String
Match
Python 2.7 getting user input and manipulating as string without quotations
Python
String
Python 2.7
Prepend text to beginning of string
Javascript
String
Performance
Concat
Jsperf
Join a list of strings in python and wrap each string in quotation marks
Python
String
List
How to convert variable (object) name into String
String
R
Object
Java ByteBuffer to String
Java
String
Serialization
Bytearray
Use dynamic (variable) string as regex pattern in JavaScript
Javascript
Regex
String
Why does `if None.__eq__("a")` seem to evaluate to True (but not quite)?
Python
Python 3.x
String
Boolean Expression
Equivalence
How do I convert from stringstream to string in C++?
C++
String
Stringstream
Append to string variable
Javascript
String
Variables
Append
Get characters after last / in url
Php
String
String isNullOrEmpty in Java?
Java
String
String contains another string
Javascript
node.js
String
Replace String in all files in Eclipse
String
Eclipse
Replace
Print without b' prefix for bytes in Python 3
Python
String
Python 3.x
Why is the length of this string longer than the number of characters in it?
C#
.Net
String
Unicode
Unicode String
Difference between string and char[] types in C++
C++
String
Types
Can I "multiply" a string (in C#)?
C#
String
Extension Methods
string sanitizer for filename
Php
String
Sanitization
In Ruby how do I generate a long string of repeated text?
Ruby
String
Compare version numbers without using split function
C#
String
Compare
Version
Versioning
Why doesn't calling a string method do anything unless its output is assigned?
Python
String
Why is the String class declared final in Java?
Java
String
Final
Why are empty strings returned in split() results?
Python
String
Split
How to replace case-insensitive literal substrings in Java
Java
String
Replace
Substring
Case Insensitive
How do I create a multiline Python string with inline variables?
Python
String
Variables
Multiline
Get string between two strings in a string
C#
Regex
String
Split string using a newline delimiter with Python
Python
String
Python 2.7
What is the most succinct way to remove the first character from a string in Swift?
String
Swift
Highlight the difference between two strings in PHP
Php
String
Diff
Word Diff
Consistency of hashCode() on a Java string
Java
String
Hashcode
How to convert string to binary?
Python
String
Binary
What's the difference between str.isdigit, isnumeric and isdecimal in python?
Python
String
Python 3.x
How do I capitalize first letter of first name and last name in C#?
C#
String
Capitalize
PHP String to Float
Php
String
Casting
Floating Point
Determine a string's encoding in C#
C#
String
Encoding
Python: how to print range a-z?
Python
String
List
Range
Ascii
String concatenation does not work in SQLite
Sql
Sqlite
String
Operators
Concatenation
Capitalize or change case of an NSString in Objective-C
Objective C
String
Cocoa Touch
Nsstring
Uppercase
Split an NSString to access one particular piece
Objective C
Swift
String
Nsstring
Split string to equal length substrings in Java
Java
Regex
String
Split
php implode (101) with quotes
Php
Arrays
String
Csv
Implode
Why does String.split need pipe delimiter to be escaped?
Java
Regex
String
How do I convert a Python 3 byte-string variable into a regular string?
Python 3.x
String
Type Conversion
Convert hex to binary
Python
String
Binary
Hex
String Formatting
How to convert DateTime to/from specific string format (both ways, e.g. given Format is "yyyyMMdd")?
C#
String
Datetime
How to convert a Binary String to a base 10 integer in Java
Java
String
Binary
Radix
Split comma-separated strings in a column into separate rows
R
String
Split
R Faq
String Interpolation vs String.Format
C#
String
Performance
Resharper
String Interpolation
Python: How to determine the language?
Python
String
Parsing
How to count instances of character in SQL Column
Sql
String
Tsql
Count
Symbols
What's wrong with Groovy multi-line String?
String
Groovy
Multiline
how to convert java string to Date object
Java
String
Date
How can I convert String[] to ArrayList<String>
Java
Android
String
Arraylist
Finding a substring within a list in Python
Python
String
List
How do you append to an already existing string?
String
Bash
Shell
String Concatenation
Process escape sequences in a string in Python
Python
String
Escaping
Sort rows in data.table in decreasing order on string key `order(-x,v)` gives error on data.table 1.9.4 or earlier
R
String
Sorting
data.table
Key
How to use regex in String.contains() method in Java
Java
Regex
String
Converting a column within pandas dataframe from int to string
Python
String
Pandas
Dataframe
Int
Is there a JavaScript strcmp()?
Javascript
String
Strcmp
Clearing a string buffer/builder after loop
Java
String
Buffer
How to convert current date into string in java?
Java
String
Date
Formatting
string to string array conversion in java
Java
Arrays
String
Split
Is there a generator version of `string.split()` in Python?
Python
String
Generator
How to generate string of a certain length to insert into a file to meet a file size criteria?
C#
String
.Net
Operations
How does one create an InputStream from a String?
Java
String
Stream
Extract directory from path
String
Bash
Path
What is the zero for string?
String
Go
Selecting data frame rows based on partial string match in a column
R
Regex
String
Match
Subset
Iterate over the lines of a string
Python
String
Iterator
C# equivalent to Java's charAt()?
C#
Java
String
How to validate GUID is a GUID
C#
asp.net
String
Guid
Strip html from string Ruby on Rails
Html
Ruby
String
Ruby on-Rails-3
Remove all whitespaces from NSString
Objective C
String
Cocoa
Nsstring
How to know the size of the string in bytes?
C#
.Net
String
Size
Byte
How do I convert from an integer to a string?
String
Int
Type Conversion
Rust
How can I safely encode a string in Java to use as a filename?
Java
String
File
Encoding
How to find indices of all occurrences of one string in another in JavaScript?
Javascript
Regex
String
Indexof
How to check if a String contains only ASCII?
Java
String
Character Encoding
Ascii
How to strip HTML tags from a string in SQL Server?
Html
Sql
Sql Server
String
Sql Server-2005
A method to reverse effect of java String.split()?
Java
String
Split
How to convert PascalCase to snake_case?
Php
String
Pascalcasing
Snakecasing
Print newline in PHP in single quotes
Php
String
int value under 10 convert to string two digit number
C#
String
Shorten string without cutting words in JavaScript
Javascript
String
Substring
Test a string for a substring
Python
String
Replacing a char at a given index in string?
C#
String
How does the String class override the + operator?
Java
String
Object
How to index characters in a Golang string?
String
Go
Character
Parse usable Street Address, City, State, Zip from a string
String
Parsing
Sql Server-2005
Street Address
Is there a simple way to convert C++ enum to string?
C++
String
Enums
Scripting
What is the easiest way in C# to trim a newline off of a string?
C#
String
How to enter quotes in a Java string?
Java
String
Quotes
Escaping
Convert seconds value to hours minutes seconds?
Java
Android
String
Android Edittext
Bigdecimal
Strip spaces/tabs/newlines - python
Python
String
Python 2.7
Strip
How are strings passed in .NET?
.Net
String
Function
Parameter Passing
Why is it Valid to Concatenate Null Strings but not to Call "null.ToString()"?
C#
.Net
String
Null
How to remove last n characters from every element in the R vector
R
String
Test whether string is a valid integer
String
Bash
If Statement
Integer
Format file size as MB, GB, etc
Java
String
Format
Numbers
How to obtain the last path segment of a URI
Java
String
Url
How to define an enum with string value?
C#
String
Enums
How to remove leading and trailing spaces from a string?
Python
String
Removing first x characters from string?
Python
String
How to use `string.startsWith()` method ignoring the case?
Java
String
Creating C formatted strings (not printing them)
C
String
What are all the escape characters?
Java
String
Escaping
Add characters to a string in Javascript
Javascript
String
For Loop
Regular expression to find URLs within a string
Regex
String
Url
Str_replace for multiple items
Php
String
Str Replace
How to transform array to comma separated words string?
Php
Arrays
String
Converting String to "Character" array in Java
Java
Arrays
String
Character
"Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions" error
C#
asp.net
String
asp.net Mvc-4
how to parse a JSON String with jq (or other alternatives)?
Json
String
Sed
Escaping
Jq
TypeScript array to string literal type
Arrays
String
Typescript
Types
How do I check if a string is entirely made of the same substring?
Javascript
String
Algorithm
String difference in Bash
String
Bash
How do I lowercase a string in C?
C
String
Lowercase
In Java, is there a way to write a string literal without having to escape quotes?
Java
String
Escaping
PadLeft function in T-SQL
String
Tsql
Using Python String Formatting with Lists
Python
String
List
Formatting
String Formatting
Is there a way to create a function from a string with javascript?
Javascript
String
Function
How to remove all white spaces in java
Java
String
Whitespace
Replace non-numeric with empty string
C#
Regex
String
Phone Number
What's the most efficient test of whether a PHP string ends with another string?
Php
String
Performance
Removing carriage return and new-line from the end of a string in c#
C#
String
Newline
Carriage Return
How can I append a string to an existing field in MySQL?
Mysql
Sql
String
Append
How to convert a number to string and vice versa in C++
C++
String
Type Conversion
Numeric
C++ Faq
Convert a string to regular expression ruby
Ruby
Regex
String
Ruby 1.9.3
How to get the value of a variable given its name in a string?
Python
String
Variables
How does String.Index work in Swift
Swift
String
Indexing
How to read the content of a file to a string in C?
C
String
File
How can I strip HTML tags from a string in ASP.NET?
C#
asp.net
Html
Regex
String
Capitalize first letter. MySQL
Mysql
String
Capitalize
Why does PHP consider 0 to be equal to a string?
Php
String
Numbers
Evaluate
How can I check whether a string variable is empty or null in C#?
C#
String
Isnullorempty
How to implode array with key and value without foreach in PHP
Php
Arrays
String
Implode
How to convert string to char array in C++?
C++
String
Type Conversion
What is the difference between string primitives and String objects in JavaScript?
Javascript
String
Object
Swift double to string
Swift
String
Casting
Double
String literals and escape characters in postgresql
String
Postgresql
Escaping
Inserting the same value multiple times when formatting a string
Python
String
Format
How to join NSArray elements into an NSString?
Cocoa
String
compareTo() vs. equals()
Java
String
Equals
Compareto
A good example for boost::algorithm::join
C++
String
Boost
Join
Python, add trailing slash to directory string, os independently
Python
String
How does strtok() split the string into tokens in C?
C
String
Split
Token
Strtok
Creating Unicode character from its number
Java
String
Unicode
Character
Concatenate two string literals
C++
String
Syntax
Operators
Concatenation
What's the difference of strings within single or double quotes in groovy?
String
Groovy
Check whether a string contains a substring
String
Perl
String Matching
Aren't Python strings immutable? Then why does a + " " + b work?
Python
String
Immutability
Mutability
Python convert tuple to string
Python
String
Tuples
How to check if a String contains any of some strings
C#
String
Contains
C++ performance challenge: integer to std::string conversion
C++
Performance
String
Integer
How to write string literals in python without having to escape them?
Python
String
Escaping
Converting Secret Key into a String and Vice Versa
Java
String
Encryption
How to convert a String into an ArrayList?
Java
String
Arraylist
Converter
Legality of COW std::string implementation in C++11
C++
String
C++11
Stdstring
Copy on-Write
How to write to a CSV line by line?
Python
String
File
Csv
Io
Efficiently replace all accented characters in a string?
Javascript
Sorting
String
Collation
When is it better to use String.Format vs string concatenation?
C#
.Net
String
How can I convert a string to upper- or lower-case with XSLT?
String
Xpath
Xslt
Case Conversion
In Perl, how can I read an entire file into a string?
String
Perl
Slurp
How to reverse a string in Go?
String
Go
Reverse
Java: PrintStream to String?
Java
String
Printstream
What is the Java string pool and how is "s" different from new String("s")?
Java
String
Detecting if an NSString contains...?
Objective C
String
Nsstring
What is for Python what 'explode' is for PHP?
Php
Python
String
Printing without newline (print 'a',) prints a space, how to remove?
Python
String
Printing
Python 2.x
How could I convert data from string to long in c#
C#
String
Type Conversion
Long Integer
string.Format() giving "Input string is not in correct format"
C#
Winforms
String
require file as string
String
node.js
Express
Require
Splitting string into multiple rows in Oracle
Sql
String
Oracle
Plsql
Tokenize
How to convert "Index" to type "Int" in Swift?
String
Swift
How to convert std::string to LPCSTR?
C++
Windows
String
Color different parts of a RichTextBox string
C#
String
Winforms
Colors
Richtextbox
Javascript: How to check if a string is empty?
Javascript
String
JavaScript: replace last occurrence of text in a string
Javascript
String
Replace
Check if URL has certain string with PHP
Php
String
Url
Converting String To Float in C#
C#
.Net
String
Floating Point
Type Conversion
Confused about __str__ on list in Python
Python
String
List
Printing
Tostring
How to get the number of characters in a std::string?
C++
String
Stdstring
String Length
Check if a string contains one of 10 characters
C#
String
How to un-escape a backslash-escaped string?
Python
String
Escaping
Set value to null in WPF binding
Wpf
Nullable
Binding
.Net 3.5
String
How many bytes in a JavaScript string?
Javascript
String
Size
Byte
Objective-C formatting string for boolean?
Objective C
String
Nsstring
String Formatting
How to check if a string is a valid date
Ruby on-Rails
Ruby
String
Date
JQuery string contains check
Javascript
Jquery
String
Comparison
Contains
How can I split and parse a string in Python?
Python
String
Parsing
Split
Getting and removing the first character of a string
String
R
Format a JavaScript string using placeholders and an object of substitutions?
Javascript
Jquery
String
String Formatting
Best way to resolve file path too long exception
C#
.Net
String
File
Sharepoint
Converting of Uri to String
Android
String
Uri
ObjectiveC Parse Integer from String
Iphone
Objective C
String
Int
String replacement in java, similar to a velocity template
Java
String
Reflection
Velocity
Convert string to List<string> in one line?
C#
asp.net
List
Generics
String
Linux find file names with given string recursively
Linux
String
Find
Check and extract a number from a String in Java
Java
Regex
String
How to lowercase a pandas dataframe string column if it has missing values?
Python
String
Pandas
Missing Data
Split a string at uppercase letters
Python
Regex
String
Convert string to a variable name
String
R
String concatenation of two pandas columns
Python
String
Pandas
Numpy
Dataframe
Why is #include <string> preventing a stack overflow error here?
C++
String
Stack Overflow
Explicit
Javascript Thousand Separator / string format
Javascript
String
Numbers
Format
Using printf with a non-null terminated string
C
String
Format
Printf
How to raise a ValueError?
Python
String
Replace substring with another substring C++
C++
String
Replace
Substring
How to tell if string starts with a number with Python?
Python
String
Digits
Insert space before capital letters
Javascript
Jquery
Regex
String
Replace
What is the difference between gsub and sub methods for Ruby Strings
Ruby
String
How can I get the last character in a string?
Javascript
Jquery
String
How to sort an array based on the length of each element?
Javascript
Arrays
String
Sorting
How to convert a string from uppercase to lowercase in Bash?
String
Bash
Shell
Uppercase
Lowercase
What are the mechanics of short string optimization in libc++?
C++
String
Optimization
C++ Standard-Library
Libc++
Efficient string concatenation in C++
C++
Performance
String
Concatenation
Remove Trailing Slash From String PHP
Php
String
Compare Strings Javascript Return %of Likely
Javascript
String
Algorithm
Comparison
String.Join method that ignores empty strings?
.Net
vb.net
String
How to print double quotes inside ""?
Swift
String
Escaping
Cleanest way to build an SQL string in Java
Java
Sql
Oracle
String
Get the string representation of a DOM node
Javascript
String
Dom
Cross Browser
Element
How can strings be concatenated?
Python
String
Concatenation
Is there a way to instantiate a class by name in Java?
Java
String
Object
Instantiation
How do I replace the *first instance* of a string in .NET?
C#
.Net
Regex
String
Replace
.NET - How can you split a "caps" delimited string into an array?
.Net
Regex
Algorithm
String
Pascalcasing
Is String.Contains() faster than String.IndexOf()?
C#
.Net
asp.net
Performance
String
How to escape single quotes in MySQL
Mysql
String
Quotes
Extract only right most n letters from a string
C#
String
Substring
Strings are objects in Java, so why don't we use 'new' to create them?
Java
String
Core
New Operator
How many spaces will Java String.trim() remove?
Java
String
Trim
How do I make my string comparison case-insensitive?
Java
String
Comparison
Case Insensitive
Ruby: How to get the first character of a string
Ruby
String
How can I use "." as the delimiter with String.split() in java
Java
String
Split
Turning multi-line string into single comma-separated
String
Bash
Shell
Csv
Generate fixed length Strings filled with whitespaces
Java
String
Formatting
Pandas DataFrame stored list as string: How to convert back to list
Python
String
List
Pandas
Dataframe
Why is str.translate much faster in Python 3.5 compared to Python 3.4?
Python
String
Python 3.x
Python Internals
Python 3.5
Most pythonic way to interleave two strings
Python
String
Python 2.7
Python 3.x
Is there a "String.Format" that can accept named input parameters instead of index placeholders?
C#
.Net
String
String Formatting
Kotlin - How to correctly concatenate a String
String
Kotlin
Converting A String To Hexadecimal In Java
Java
String
Hex
How to do ToString for a possibly null object?
C#
.Net
String
Object
Null
Most efficient way to make the first character of a String lower case?
Java
String
Performance
Optimization
How to substring in jquery
Javascript
Jquery
String
Why is there no std::stou?
C++
String
C++11
Std
Convert an array to string
C#
Arrays
String
How can I copy a Python string?
Python
String
Python 2.7
Find out if Character in String is emoji?
Ios
String
Swift
Character
Emoji
Swift equivalent of Java toString()
Ios
Swift
String
Tostring
Customstringconvertible
What is lexicographical order?
String
Sorting
Lexicographic
Converting List<Integer> to List<String>
Java
String
Collections
Integer
Evaluating string "3*(4+2)" yield int 18
C#
String
Math
Numeric
Evaluate
How to generate random strings in Python?
Python
String
Random
How can I strip first and last double quotes?
Python
String
Strip
Hash string in c#
C#
String
Hash
How to convert an Int to a String of a given length with leading zeros to align?
String
Scala
Formatting
Int
How many String objects will be created when using a plus sign?
C#
String
Clr
How to check if a string starts with one of several prefixes?
Java
String
If Statement
String formatting in Python 3
Python
Python 3.x
String
How do you iterate over a string by character
String
Iterator
Rust
How is String concatenation implemented in Java 9?
Java
String
String Concatenation
Java 9
Invokedynamic
Is string in array?
C#
Arrays
String
Is there a method for String conversion to Title Case?
Java
String
Title Case
read string from .resx file in C#
C#
.Net
String
.Net 4.0
How to extract numbers from a string and get an array of ints?
Java
Arrays
Regex
String
Idiomatic way to convert an InputStream to a String in Scala
String
Scala
Inputstream
How do I convert a list into a string with spaces in Python?
Python
String
List
Spaces
Converting dd/mm/yyyy formatted string to Datetime
C#
String
Datetime
Convert a file path to Uri in Android
Android
String
Uri
How to replace multiple white spaces with one white space
C#
String
Whitespace
Extracting the last n characters from a ruby string
Ruby
String
Replacing accented characters php
Php
String
Preg Replace
Non Ascii-Characters
Replace string within file contents
Python
String
File Io
XML Document to String
Java
Xml
String
Dom
Xmldocument
Reading string from input with space character?
C
String
Input
Scanf
Whitespace
How to determine whether a substring is in a different string
Python
String
How to convert enum names to string in c
C
String
Enums
Python - difference between two strings
Python
String
Python 3.x
Diff
Swift - which types to use? NSString or String
Ios
Objective C
String
Macos
Swift
How do I properly use std::string on UTF-8 in C++?
C++
String
C++11
How can I iterate through the unicode codepoints of a Java String?
Java
String
Unicode
How is null + true a string?
C#
.Net
String
Null
Types
Why is "a" != "a" in C?
C
String
Python: Get the first character of the first string in a list?
Python
String
List
Character
How do I interpolate strings?
C#
String
String Interpolation
Why is capitalizing the first letter of a string so convoluted in Rust?
String
Rust
Uppercase
How do I wrap a string in a file in Python?
Python
String
File
Stringio
Java equivalents of C# String.Format() and String.Join()
C#
Java
String
LINQ Distinct operator, ignore case?
C#
Linq
String
Comparison
Distinct
How do I find out if first character of a string is a number?
Java
String
How to force JS to do math instead of putting two strings together
Javascript
String
Math
Addition
Test if string is a number in Ruby on Rails
Ruby on-Rails
Ruby
String
Integer
Finding all possible permutations of a given string in python
Python
String
Permutation
Does std::string have a null terminator?
C++
String
Null
Get last "column" after .str.split() operation on column in pandas DataFrame
Python
String
Pandas
Split
Python - Join with newline
Python
String
How do I remove the last comma from a string using PHP?
Php
String
Substr
Python string interning
Python
String
Python Internals
Internals
String Interning
How to compare 'μ' and 'µ' in C#
C#
.Net
String
Unicode
String Comparison
How to convert Vec<char> to a string
String
Rust
Convert String to Float in Swift
String
Floating Point
Swift
String Parsing
Why is f'{{{74}}}' the same as f'{{74}}' with f-Strings?
Python
Python 3.x
String
Formatting
F String
Converting bool to text in C++
C++
String
Boolean
Java Replacing multiple different substring in a string at once (or in the most efficient way)
Java
String
Replace
Regular expression which matches a pattern, or is an empty string
Javascript
Regex
Email Validation
String
Split string with dot as delimiter
Java
Regex
String
Split
Subscript and Superscript a String in Android
Java
Android
String
Superscript
Subscript
How to get string width on Android?
Android
String
Bounding Box
How to sort an IEnumerable<string>
C#
.Net
String
Sorting
Ienumerable
Where does Java's String constant pool live, the heap or the stack?
Java
String
Jvm
Converting string to numeric
String
R
Fastest method to escape HTML tags as HTML entities?
Javascript
Html
Regex
Performance
String
Remove multiple spaces and new lines inside of String
Ruby
String
Access string.xml Resource File from Java Android Code
Java
Android
String
Python: How to check a string for substrings from a list?
Python
String
List
Substring
Python str vs unicode types
Python
String
Unicode
Golang converting string to int64
String
Go
Int64
What linux shell command returns a part of a string?
Linux
String
Bash
Substr
Capitalize only first character of string and leave others alone? (Rails)
Ruby on-Rails
String
Capitalization
Finding # occurrences of a character in a string in Ruby
Ruby
String
Methods
What is the lifetime of the result of std::string::c_str()?
C++
String
C Strings
Lifetime
C Str
How to get a string between two characters?
Java
String
Remove 'b' character do in front of a string literal in Python 3
Python
String
Encryption
Binary
Return first match of Ruby regex
Ruby
Regex
String
What function is to replace a substring from a string in C?
C
String
Replace
Removing leading and trailing spaces from a string
C++
String
MySql - Way to update portion of a string?
Mysql
Sql
String
Sql Update
How to remove part of a string?
Javascript
String
java: use StringBuilder to insert at the beginning
Java
String
Insert
Append
Stringbuilder
How to remove first 10 characters from a string?
C#
asp.net
.Net
String
Substring
Using variables inside strings
C#
String
String Formatting
Exact difference between CharSequence and String in java
Java
String
Charsequence
Get string after character
String
Bash
Extract
How can I get the string representation of a struct?
String
Struct
Go
How to compare two strings ignoring case in Swift language?
Ios
Swift
String
Set the maximum character length of a UITextField in Swift
Ios
String
Swift
Uitextfield
Character
How to check what a String starts with (prefix) or ends with (suffix) in Swift
Ios
String
Swift
PHP - remove all non-numeric characters from a string
Php
String
How do I use LINQ Contains(string[]) instead of Contains(string)
C#
Linq
String
Contains
How to format strings using printf() to get equal length in the output
C
String
Printf
Pretty Print
What is the proper way to check if a string is empty in Perl?
Perl
String
Comparison
How to find nth occurrence of character in a string?
Java
String
Substring
Plurality in user messages
C#
String
Localization
Pluralize
javascript regular expression to not match a word
Javascript
Regex
String
How to search for a string in cell array in MATLAB?
String
Matlab
Cell Array
Qt c++ aggregate 'std::stringstream ss' has incomplete type and cannot be defined
C++
String
Qt
Stringstream
Finding last occurrence of substring in string, replacing that
Python
String
Parsing
How can I perform a culture-sensitive "starts-with" operation from the middle of a string?
.Net
String
Unicode
How to get last 4 characters of a string?
String
Swift
Is it better to reuse a StringBuilder in a loop?
Java
Performance
String
Stringbuilder
Opposite of String.Split with separators (.net)
C#
.Net
Arrays
String
Ruby: Merging variables in to a string
Ruby
String
Can I multiply strings in Java to repeat sequences?
Java
String
Java equivalent of C#'s verbatim strings with @
C#
Java
String
Literals
How to "properly" print a list?
Python
String
How to remove certain characters from a string in C++?
C++
String
Character
Joining multiple strings if they are not empty in Python
Python
String
Join
Why cannot cast Integer to String in java?
Java
String
Casting
Integer
How can I check if a string contains ANY letters from the alphabet?
Python
String
Why does PHP convert a string with the letter E into a number?
Php
String
Type Conversion
String Comparison
Java split string to array
Java
String
Split
Convert float to string with precision & number of decimal digits specified?
C++
String
Floating Point
Get the index of the nth occurrence of a string?
C#
.Net
String
Indexing
Indexof
Is there a way of making strings file-path safe in c#?
C#
.Net
String
Filepath
Convert string with dashes to camelCase
Php
String
Manipulate a url string by adding GET parameters
Php
Url
String
Check if string is upper, lower, or mixed case in Python
Python
String
Why does substring slicing with index out of range work?
Python
String
Substring
Regex expressions in Java, \\s vs. \\s+
Java
Regex
String
Quantifiers
C# - Simplest way to remove first occurrence of a substring from another string
C#
String
Is StringUtils.EMPTY recommended?
Java
String
Apache Commons
replace String with another in java
Java
String
Filter string data based on its string length
Python
String
Pandas
Csv
Filter
Java - Create a new String instance with specified length and filled with specific character. Best solution?
Java
String
Is there any generic Parse() function that will convert a string to any type using parse?
C#
String
Parsing
Type Conversion
How can I compare strings in C using a `switch` statement?
C
String
Switch Statement
String Comparison
split string in to 2 based on last occurrence of a separator
Python
String
How to store phone numbers on MySQL databases?
Mysql
String
Database Design
Formatting
Int
Get the index of a pattern in a string using regex
Java
Regex
String
Remove part of a string
R
Regex
String
Splitting String with delimiter
String
Groovy
Split
Multiline C# interpolated string literal
C#
.Net
String
Multiline
String Interpolation
Why is there no support for concatenating std::string and std::string_view?
C++
String
C++17
String View
Prevent function taking const std::string& from accepting 0
C++
String
Std
Implicit Conversion
C# split string but keep split chars / separators
C#
String
Python regex - r prefix
Python
Regex
String
Literals
Prefix
How to replace special characters in a string?
Java
String
How to check if a string starts with another string in C?
C
String
Comparison
Startswith
How to count the number of lines of a string in javascript
Javascript
String
Split
How to get char from string by index?
Python
String
How can I remove the ANSI escape sequences from a string in python
Python
String
Escaping
Ansi Escape
Java equivalent to Explode and Implode(PHP)
Java
Arrays
String
Split
How do you pull first 100 characters of a string in PHP
Php
String
Replace Multiple String Elements in C#
C#
String
Refactoring
Immutability
JavaScript: How many times a character occurs in a string?
Javascript
String
How to check a string against null in java?
Java
String
Null
Extracting date from a string in Python
Python
String
Date
How to implode a vector of strings into a string (the elegant way)
C++
String
Stl
Stdstring
Implode
How do you convert a byte array to a hexadecimal string in C?
C
String
Hex
Change text color of one word in a TextView
Android
String
Colors
Textview
Why is splitting a string slower in C++ than Python?
C++
Python
String
Split
Benchmarking
Extract the first (or last) n characters of a string
String
R
How do I test for an empty string in a Bash case statement?
String
Bash
Null
Case
How to create a Rust struct with string members?
String
Rust
Stripping non printable characters from a string in python
Python
String
Non Printable
String.Format like functionality in T-SQL?
Tsql
String
Regular Expression Match to test for a valid year
Regex
String
Validation
String Matching
How to convert a String to long in javascript?
Javascript
String
Long Integer
Unix Timestamp
In bash, how do I count the number of lines in a variable?
Bash
String
String concatenation with Groovy
String
Groovy
Idioms
String Concatenation
Gstring
How to compare Unicode characters that "look alike"?
C#
.Net
String
Unicode
String Comparison
How to convert an Int to Hex String in Swift
Ios
String
Hex
Swift
How do I get the first character out of a string?
String
Rust
Calling PHP functions within HEREDOC strings
Php
String
Heredoc
How to remove symbols from a string with Python?
Python
Regex
String
C++/CLI Converting from System::String^ to std::string
String
C++ Cli
Managed C++
Unrecognized escape sequence for path string containing backslashes
C#
.Net
String
Path
Escaping
Evaluating a string as a mathematical expression in JavaScript
Javascript
String
Math
Numbers
Tetris-ing an array
Php
String
Algorithm
string.Join on a List<int> or other type
C#
Arrays
String
Using new line(\n) in string and rendering the same in HTML
Jquery
Html
String
Newline
Regex for converting CamelCase to camel_case in java
Java
Regex
String
Scala check if element is present in a list
String
List
Scala
Find
Convert JsonObject to String
Java
String
Find common substring between two strings
Python
String
Algorithm
Time Complexity
Dynamic Programming
Remove quotes from String in Python
Python
String
Speech Recognition
Google Voice
The most sophisticated way for creating comma-separated Strings from a Collection/Array/List?
Java
Sql
String
String concatenation vs. string substitution in Python
Python
String
String Concatenation
How can I safely convert a byte array into a string and back?
C#
String
Bytearray
Read file-contents into a string in C++
C++
String
File Io
resetting a stringstream
C++
String
Stringstream
Convert a space delimited string to list
Python
String
Android: html in strings.xml
Android
Html
Xml
String
Android Resources
Remove empty strings from array while keeping record Without Loop?
Javascript
Arrays
Indexing
String
Removeall
How to index a String in Rust
String
Indexing
Rust
Is the time-complexity of iterative string append actually O(n^2), or O(n)?
Python
String
Algorithm
Time Complexity
String Concatenation
Why does C not allow concatenating strings when using the conditional operator?
C
String
Syntax
Concatenation
Conditional Operator
What is the best way to chop a string into chunks of a given length in Ruby?
Ruby
String
Chunking
How to capitalize the first character of each word, or the first character of a whole string, with C#?
C#
String
Humanize
Format string, integer with leading zeros
Objective C
String
Formatting
How can I replace non-printable Unicode characters in Java?
Java
String
Unicode
ValueError: could not convert string to float: id
Python
String
Floating Point
Count the number of all words in a string
R
String
Word Count
Sorting Characters Of A C++ String
C++
String
Sorting
How can I send the "&" (ampersand) character via AJAX?
Javascript
Ajax
String
Post
Xmlhttprequest
Remove/Add Line Breaks after Specific String using Sublime Text
String
Text Editor
Sublimetext2
How to create a numpy array of arbitrary length strings?
Python
Arrays
String
Numpy
How do I make a new line in swift
String
Swift
How can I convert a string to a number in Perl?
String
Perl
Floating Point
How can I get a java.io.InputStream from a java.lang.String?
Java
String
Inputstream
Convert Variable Name to String?
Python
String
Variables
jQuery removing '-' character from string
Jquery
String
Replace
Why does "true" == true show false in JavaScript?
Javascript
String
Equals
Regular expression - starting and ending with a character string
Regex
String
How can I check the first character in a string in Bash or Unix shell?
String
Bash
Unix
Character
Exitstatus
PostgreSQL newline character
String
Postgresql
Newline
How do I verify that a string only contains letters, numbers, underscores and dashes?
Python
Regex
String
Upper vs Lower Case
String
Language Agnostic
Uppercase
How to upper case every first letter of word in a string?
Java
String
Javascript: How to remove characters from end of string?
Javascript
String
Difference between <string.h> and <strings.h>
C
String
Header
c++ parse int from string
C++
String
Int
How to extend C# built-in types, like String?
C#
String
Extension Methods
Trim
How to convert string to IP address and vice versa
C++
String
Struct
Ip Address
In Addr
Right way to split an std::string into a vector<string>
C++
String
How can I truncate my strings with a "..." if they are too long?
C#
String
How to remove the first and last character of a string?
Java
String
How to test if a URL string is absolute or relative?
Javascript
Jquery
String
Url
What is the difference between []string and ...string in golang?
String
Go
Converting a str to a &[u8]
String
Rust
Slice
converting JSON to string in Python
Python
Json
String
Replace last character of string using JavaScript
Javascript
String
Parse String to Date with Different Format in Java
Java
String
Date
How do I remove all specific characters at the end of a string in PHP?
Php
Regex
String
How do I find the last occurrence of a substring in an NSString?
Objective C
String
Objective-C parse hex string to integer
Iphone
Objective C
String
Parsing
Hex
How to delete last character in a string in C#?
C#
String
Check string for palindrome
Java
Arrays
String
Char
Palindrome
Check if String contains only letters
Java
String
Replace first occurrence only of a string?
Python
String
Replace
Write bytes to file
C#
String
Byte
Hex
Split and join C# string
C#
Arrays
String
How to delete specific characters from a string in Ruby?
Ruby
String
Trim
Split string based on the first occurrence of the character
C#
asp.net
.Net
String
How do I compare two strings in python if order does not matter?
Python
String
Python 2.7
String Comparison
Add Leading Zeros to Strings in Pandas Dataframe
Python
String
Pandas
Swift - Remove " character from string
Ios
Xcode
String
Swift
Index of a substring in a string with Swift
Swift
String
Substring
String Padding in C
C
String
Padding
Is there a way to convert number words to Integers?
Python
String
Text
Integer
Numbers
What is the max length of a Python string?
Python
String
"\n" or '\n' or std::endl to std::cout?
C++
String
Character
How can non-ASCII characters be removed from a string?
Java
Regex
String
Replace
Char
Changing a column type to longer strings in rails
Ruby on-Rails
String
Postgresql
Ruby on-Rails-3.1
Rails Activerecord
Find the location of a character in string
Regex
String
R
Convert True/False value read from file to boolean
Python
String
Boolean
AngularJS format JSON string output
Javascript
Json
String
Angularjs
Formatting
Are ES6 template literals faster than string concatenation?
Javascript
String
Performance
Templates
Ecmascript 6
swift 3.0 Data to String?
Swift
String
JavaScript string and number conversion
Javascript
String
Numbers
Is it possible to modify a string of char in C?
C
String
Debugging
Replacing characters in Ant property
String
Ant
iterating over each character of a String in ruby 1.8.6 (each_char)
Ruby
String
Iterator
How to include quotes in a string
C#
String
Double Quotes
Finding multiple occurrences of a string within a string in Python
Python
String
T-SQL string replace in Update
String
Tsql
Replace
PHP: convert spaces in string into %20?
Php
String
Urlencode
Make a two-digit string from a single-digit integer
Objective C
String
Cocoa
Nsstring
Number Formatting
How to check whether a str(variable) is empty or not?
Python
String
Conditional Statements
Find text in string with C#
C#
String
Find
Passing std::string by Value or Reference
C++
String
Std
Move Semantics
Testing whether string starts with or end with another string
Ruby
String
null vs empty string in Oracle
Oracle
Null
Oracle10g
String
How do I convert a String to a BigInteger?
Java
String
Biginteger
Finding second occurrence of a substring in a string in Java
Java
String
Substring
Indexof
difference between find and index
Python
String
Python 2.7
How to get file extension from string in C++
C++
String
Filenames
File Extension
is the + operator less performant than StringBuffer.append()
Javascript
String
Concatenation
How can I insert a character after every n characters in javascript?
Javascript
String
length and length() in Java
Java
Arrays
String
Titlecasing a string with exceptions
Python
String
Title Case
PHP remove all characters before specific string
Php
String
C - The %x format specifier
C
String
Security
Format
What is the r#""# operator in Rust?
String
Rust
Syntax
String Literals
How to split filename from file extension in Swift?
Ios
String
Swift
std::string comparison (check whether string begins with another string)
C++
String
Stl
Compare
Splitting a string at every n-th character
Java
Regex
String
Split
How slow is Python's string concatenation vs. str.join?
Python
String
List
String Concatenation
Immutable class?
Java
String
Immutability
How to get the last characters in a String in Java, regardless of String size
Java
String
How can I extract the file name and extension from a path in C++
C++
String
File Io
Why StringBuilder when there is String?
Java
String
Stringbuilder
Case Insensitive String Comparison in C
C
String
String Comparison
Standard Library
Ignore Case
str performance in python
Python
String
Performance
Python 3.x
Python 2.7
Set precision of std::to_string when converting floating point values
C++
String
C++11
Double
Floating
How can I prevent java.lang.NumberFormatException: For input string: "N/A"?
Java
String
Int
Numberformatexception
How to get the last X Characters of a Golang String?
String
Go
Character
Matching strings with wildcard
C#
Regex
String
Wildcard
Why would the character 'A' be compared with 0x41?
C++
String
Java: Converting String to and from ByteBuffer and associated problems
Java
String
Character Encoding
Nio
Bytebuffer
C# code won't compile. No implicit conversion between null and int
C#
String
Null
Nullable
Converting a float to a string without rounding it
Python
String
Floating Point
Rounding
In Perl, how can I concisely check if a $variable is defined and contains a non zero length string?
Perl
String
Find Nth occurrence of a character in a string
C#
String
Finding all positions of substring in a larger string in C#
C#
.Net
asp.net
String
How to read entire stream into a std::string?
C++
String
Stream
Insert some string into given string at given index
Python
String
Converting a String to a List of Words?
Python
String
List
Words
Text Segmentation
When to use strtr vs str_replace?
Php
String
Str Replace
Strtr
Best practices/performance: mixing StringBuilder.append with String.concat
Java
String
Stringbuilder
String Concatenation
Extract digits from string - StringUtils Java
Java
String
Apache Stringutils
String Utils
How to convert a string to JSON object in PHP
Php
Json
String
Object
How can I iterate over a string by runes in Go?
String
Loops
Go
Rune
Split bash string by newline characters
String
Bash
Shell
Running Openssl from a bash script on windows - Subject does not start with '/'
Windows
String
Bash
Openssl
PHP: Best way to extract text within parenthesis?
Php
Parsing
String
What does {0} mean when found in a string in C#?
C#
String
Formatting
In Javascript, how can I perform a global replace on string with a variable inside '/' and '/g'?
Javascript
Regex
String
String.Join vs. StringBuilder: which is faster?
.Net
Performance
String
Stringbuilder
Can you have variables within triple quotes? If so, how?
Python
String
Formatting
Convert std::string to QString
C++
String
Qt
Utf 8
Qstring
I want to truncate a text or line with ellipsis using JavaScript
Javascript
String
Truncate
How to delete "px" from 245px
Javascript
String
Variables
Erase
Get the last element of a std::string
C++
String
Strip last two characters of a column in MySQL
Mysql
Sql
String
Remove last character if it's a backslash
Python
String
Removing spaces from string
Android
String
Replace
Trim
What is use of c_str function?
C++
C
String
C Str
Correct way to use StringBuilder in SQL
Java
String
Stringbuilder
Get the first letter of each word in a string
Php
String
Converting a string representation of a list into an actual list object
Python
String
List
Get object property name as a string
Javascript
String
Object
Properties
Current date and time as string
C++
String
Date
Datetime
Time
Byte Array to Hex String
Python
String
Python 2.7
Bytearray
How can I compare a string to multiple correct values in Bash?
String
Bash
Comparison
Compare
Splitting a semicolon-separated string to a dictionary, in Python
Python
String
Dictionary
Split
Java Strings: "String s = new String("silly");"
Java
String
Splitting CamelCase
C#
asp.net
String
Check if a String contains a special character
Java
String
Special Characters
Remove Characters from the end of a String Scala
String
Scala
Split a string into an array of strings based on a delimiter
Delphi
String
Split
Delimiter
What is the point of STL Character Traits?
C++
String
Stl
Stdstring
Char Traits
What is StringIO in python used for in reality?
Python
String
Caching
Io
Enforcing spaces in string resources
Android
String
Remove part of string in Java
Java
String
String Concatenation using '+' operator
C#
.Net
String
Go StartsWith(str string)
String
Go
Startswith
Trim string's suffix or extension?
String
Go
Easy way to remove accents from a Unicode string?
Java
String
Unicode
Diacritics
ruby .split('\n') not splitting on new line
Ruby
String
How to remove diacritics from a String in Swift?
Swift
String
Splitting a string into separate variables
String
Powershell
How do I convert a list of ascii values to a string in python?
Python
String
Ascii
How to cast array elements to strings in PHP?
Php
String
Arrays
Casting
Substring with reverse index
Javascript
String
What does a leading `\x` mean in a Python string `\xaa`
Python
String
Escaping
How to get ° character in a string in python?
Python
String
Convert regular Python string to raw string
Python
String
How to concatenate string and int in C?
C
String
Way to have String.Replace only hit "whole words"
C#
.Net
vb.net
String
Intellij IDEA plus sign when String wrap
String
Intellij Idea
string.Empty vs null.Which one do you use?
C#
.Net
Null
String
Remove last characters from a string in C#. An elegant way?
C#
.Net
String
Ruby multiple string replacement
Ruby
String
Gsub
Remove Sub String by using Python
Python
Regex
String
How do I concatenate a boolean to a string in Python?
Python
String
Casting
Boolean
Concatenation
How to put a "-" in string.xml file
Android
String
Using Locales with Java's toLowerCase() and toUpperCase()
Java
String
Locale
Remove a character at a certain position in a string - javascript
Javascript
String
Getting "command not found" error while comparing two strings in Bash
String
Bash
If Statement
Syntax
Compare
How can I concatenate str and int objects?
Python
String
Python 3.x
Concatenation
Python 2.x
How does this Java code snippet work? (String pool and reflection)
Java
String
Reflection
String Pool
How to join filesystem path strings in PHP?
Php
String
File
Raw Strings in Java - for regex in particular. Multiline strings
Java
Regex
String
Rawstring
How to split a string in Ruby and get all items except the first one?
Ruby
String
Split
How to convert string to integer in C#
C#
.Net
String
Int
Type Conversion
How I can print the wchar_t values to console?
C++
String
Wchar T
Unicode String
How to turn a string formula into a "real" formula?
Excel
String
Formula
Worksheet Function
Evaluate
Joining pairs of elements of a list
Python
String
List
Join
Determine prefix from a set of (similar) strings
Python
String
Prefix
Fastest way to strip all non-printable characters from a Java String
Java
String
Performance
Optimization
Micro Optimization
Converting an int or String to a char array on Arduino
String
Char
Arduino
Add separator to string at every N characters?
C#
String
Grouping
String Formatting
When to use []byte or string in Go?
String
Bytearray
Go
Java converting int to hex and back again
Java
String
Hex
Remove HTML tags from string including   in C#
C#
Html
Regex
String
Data.Text vs String
String
Haskell
Text
How to pad a string to a fixed length with spaces in Python?
Python
String
Format
Sort on a string that may contain a number
Java
Algorithm
String
Sorting
Comparison
Remove Last Path Component In a String
Python
String
Splitting C++ Strings Onto Multiple Lines (Code Syntax, Not Parsing)
C++
String
Syntax
Coding Style
Readability
Remove a part of a string, but only when it is at the end of the string
Php
String
Replace
Preg Replace
How to convert a Java String to an ASCII byte array?
Java
Arrays
String
Ascii
Bytearray
How to convert WebResponse.GetResponseStream return into a string?
C#
.Net
String
Httpwebresponse
Using quotation marks inside quotation marks
Python
String
Python 2.7
MySql Query Replace NULL with Empty String in Select
Mysql
String
Replace
Null
Defining constant string in Java?
Java
String
Usage of unicode() and encode() functions in Python
Python
String
Sqlite
Unicode
Encoding
Java: String split(): I want it to include the empty strings at the end
Java
String
Split
How to convert between bytes and strings in Python 3?
String
Python 3.x
Byte
How to instantiate class from name string in Rails?
Ruby on-Rails
Ruby on-Rails-3
String
Class
Instantiation
How to strip comma in Python string
Python
String
Strip
Convert from lowercase to uppercase all values in all character variables in dataframe
R
String
Uppercase
How can I retrieve the namespace to a string C#
C#
String
Namespaces
How do I write a backslash (\) in a string?
C#
String
Winforms
Can Golang multiply strings like Python can?
Python
String
Python 3.x
Go
Delete certain lines in a txt file via a batch file
String
Batch File
How to split string into substrings on iOS?
Ios
Objective C
Iphone
String
Substring
Limit String Length
Php
String
Fastest way to put contents of Set<String> to a single String with words separated by a whitespace?
Java
String
Optimization
Set
Whitespace
How to get Xml as string from XDocument?
C#
.Net
Xml
String
Linq to-Xml
Remove whitespace from string in Objective-C
Objective C
String
Whitespace
Converting string to double in C#
C#
String
Double
Type Conversion
Format string to a 3 digit number
C#
String
Numbers
Format
String replace method is not replacing characters
Java
String
Replace
How can I remove punctuation from input text in Java?
Java
Regex
String
Formatting
How can I format a String number to have commas in android Edit Field
Java
Android
String
Format
Split string in JavaScript and detect line break
Javascript
String
Canvas
Split
Line Breaks
How to delete all instances of a character in a string in python?
Python
String
Python 2.7
Replace
Why does JavaScript handle the plus and minus operators between strings and numbers differently?
Javascript
String
Numbers
Operators
Javascript convert PascalCase to underscore_case/snake_case
Javascript
String
Case Conversion
Split a string only by first space in python
Python
String
Split
Does R have function startswith or endswith like python?
Python
R
String
Startswith
Ends With
How do I convert a Python UUID into a string?
Python
String
Uuid
convert string to number node.js
node.js
String
Type Conversion
Best way to randomize a list of strings in Python
Python
String
Random
C# testing to see if a string is an integer?
C#
.Net
String
Integer
String concatenation in Jinja
String
Jinja2
Convert datetime value into string
Mysql
Database
String
Datetime
Scala capture group using regex
Regex
String
Scala
Capturing Group
How to unescape a Java string literal in Java?
Java
String
Escaping
How to downcase the first character of a string?
Python
String
How are strings compared?
Python
String
Comparison
Easy way of finding decimal places
Python
String
Decimal
How to concat string + i?
String
Matlab
Loops
For Loop
Octave
Determining how many times a substring occurs in a string in Python
Python
String
String compare in Perl with "eq" vs "=="
String
Perl
How to count of sub-string occurrences?
C#
String
String array initialization in Java
Java
Arrays
String
Why do backslashes appear twice?
Python
String
Escaping
Backslash
Repr
Check if string has date, any format
Python
String
Macos
Date
Datetime
How can strip whitespaces in PHP's variable?
Php
String
Whitespace
What does .NET's String.Normalize do?
.Net
String
Why do I get null instead of empty string when receiving POST request in from Razor View?
asp.net Mvc
String
Razor
Null
Viewmodel
How to split String with some separator but without removing that separator in Java?
Java
Regex
String
Split
How to print a string in C++
C++
String
Printf
Test for empty string with X""
String
Bash
Shell
Posix
How to convert IEnumerable<string> to one comma separated string?
C#
String
Linq
Collections
Ienumerable
Calculate cosine similarity given 2 sentence strings
Python
String
Nlp
Similarity
Cosine Similarity
Most optimized way of concatenation in strings
C++
String
Concatenation
Error: invalid operands of types ‘const char [35]’ and ‘const char [2]’ to binary ‘operator+’
C++
String
C Preprocessor
Stdstring
Newtonsoft.Json.Linq.JArray to string array C#
C#
Arrays
Json
String
json.net
Check for special characters in string
Javascript
Regex
String
Java - Split and trim in one shot
Java
String
Split
What is the difference between ' and " in JavaScript?
Javascript
String
Convert Symbol to a String in Elisp
String
Elisp
Symbols
How do I convert a comma-separated string into an array?
Ruby
Arrays
String
Csv
Join an array by a comma and a space
Javascript
Arrays
String
Tostring
Is there a native templating system for plain text files in Python?
Python
String
Templates
Ruby - How to select some characters from string
Ruby
String
Function
Char
Substr
Select last element quickly after a .Split()
C#
Arrays
String
Split
How to remove a path prefix in python?
Python
String
Path
Prefix
Redirect console output to string in Java
Java
String
Redirect
Console
Stdout
How can I insert new line/carriage returns into an element.textContent?
Javascript
String
Escaping
Carriage Return
String.Format - how it works and how to implement custom formatstrings
C#
.Net
vb.net
String
String Formatting
Convert string to hex-string in C#
C#
.Net
String
Hex
Python add leading zeroes using str.format
Python
String
Python 2.7
String Formatting
Conversion between UTF-8 ArrayBuffer and String
Javascript
String
Utf 8
Arraybuffer
What's the simplest way to convert from a single character String to an ASCII value in Swift?
Swift
String
Character
Ascii
Best way to convert Pascal Case to a sentence
C#
String
What's the use of System.String.Copy in .NET?
.Net
String
Copy
Immutability
Copying to the clipboard in Java
Java
String
Clipboard
Awt
How to strip trailing zeros in PHP
Php
String
Python Add Comma Into Number String
Python
String
Trim string from the end of a string in .NET - why is this missing?
C#
.Net
String
Text or Bytestring
String
Haskell
Text
Python: find closest string (from a list) to another string
Python
String
Algorithm
List
Best way to parse a URL query string
Python
String
Http
Webserver
Last index of a given substring in MySQL
Mysql
String
Lastindexof
Convert R vector to string vector of 1 element
String
R
Vector
Arguments
System
How to convert a 'string pointer' to a string in Golang?
String
Pointers
Go
Type Conversion
String Deduplication feature of Java 8
Java
String
Java 8
Converting std::__cxx11::string to std::string
C++
String
C++11
Types
Std
How does one extract each folder name from a path?
C#
String
How to split strings into text and number?
Python
String
Split
Checking for null before ToString()
C#
.Net
String
Properties
Convert String XML fragment to Document Node in Java
Java
Xml
String
The History Behind the Definition of a 'String'
String
Programming Languages
Terminology
History
What's a quick one-liner to remove empty lines from a python string?
Python
String
Line Endings
How do you declare string constants in C?
C
String
How to convert a GUID to a string in C#?
C#
String
Guid
int array to string
C#
Arrays
String
String.Split only on first separator in C#?
C#
.Net
String
Can't use unichr in Python 3.1
Python
Unicode
String
Converting to upper and lower case in Java
Java
String
Check whether a string is parsable into Long without try-catch?
Java
String
Parsing
Try Catch
shuffle string in python
Python
String
Extract a substring using PowerShell
String
Powershell
Powershell 2.0
Convert string to decimal, keeping fractions
C#
String
Decimal
How do I serialize a Python dictionary into a string, and then back to a dictionary?
Python
String
List
Serialization
Dictionary
Split NSString multiple times on the same separator
Objective C
String
Cocoa Touch
Cocoa
Nsstring
splitting a string based on multiple char delimiters
C#
.Net
String
Split
How to determine if a String has non-alphanumeric characters?
Java
String
Character
Alphanumeric
Python 3 string.join() equivalent?
Python
String
Methods
Python 3.x
"strlen(s1) - strlen(s2)" is never less than zero
C
String
Debugging
Unsigned
Finding all indexes of a specified character within a string
Javascript
String
Indexing
Java replace all square brackets in a string
Java
Regex
String
Split
How do I split a string by whitespace and ignoring leading and trailing whitespace into an array of words using a regular expression?
Javascript
Regex
String
Whitespace
Removing Whitespace
format strings and named arguments in Python
Python
String
Arguments
String Formatting
Python Checking a string's first and last character
Python
String
Python 2.7
How to convert Set to string with space?
Javascript
String
Ecmascript 6
Set
Is there any way to return HTML in a PHP function? (without building the return value as a string)
Php
String
Templating
Casting vs Converting an object toString, when object really is a string
C#
String
Casting
Parsing
Trim characters in Java
Java
String
Trim
Why doesn't String's hashCode() cache 0?
Java
String
Hashcode
Makefile : contains string
String
Makefile
Conditional Statements
Case insensitive std::string.find()
C++
String
Stl
Case Insensitive
Wstring
Short rot13 function - Python
Python
String
Encoding
How to check that a string is parseable to a double?
Java
String
Parsing
Floating Point
Converting double to string with N decimals, dot as decimal separator, and no thousand separator
C#
.Net
String
Double
Decimal
substring index range
Java
String
Substring
PHP: Split string
Php
String
Split
Extract substring from a string
Android
String
Substring
Why am I getting string does not name a type Error?
C++
String
Std
Is there a simple way that I can sort characters in a string in alphabetical order
C#
String
Sorting
Limiting the number of characters in a string, and chopping off the rest
Java
String
Substring
Prepend std::string
C++
String
Prepend
Can you append strings to variables in PHP?
Php
String
Operators
what is Ljava.lang.String;@
Java
Arrays
String
How to fmt.Printf an integer with thousands comma
String
Go
Formatting
Printf
Loop "Forgets" to Remove Some Items
Python
String
List
How to make String.Contains case insensitive?
C#
.Net
vb.net
String
Case Insensitive
When will a string be garbage collected in java
Java
String
Garbage Collection
Print raw string from variable? (not getting the answers)
Python
String
Printing
Return
bash, extract string before a colon
Regex
String
Bash
Sed
Substring
How to convert the PathBuf to String
String
Rust
Directory
Path
How do I reliably split a string in Python, when it may not contain the pattern, or all n elements?
Python
String
Python 3.x
Split
Fast punctuation removal with pandas
Python
Regex
String
Pandas
Numpy
javascript substring
Javascript
String
Substring
Remove substring only at the end of string
Python
String
Is String a primitive type?
C#
.Net
vb.net
String
Primitive Types
PHP number: decimal point visible only if needed
Php
String
Automation
Integer
jQuery Remove string from string
Javascript
Jquery
String
find if date is older than 30 days
Php
String
Datetime
Date
Time
JavaScript string with new line - but not using \n
Javascript
String
efficiently checking that string consists of one character in Python
Python
String
Python: Find a substring in a string and returning the index of the substring
Python
String
Indexing
Substring
Delete the last two characters of the String
Java
String
Substring
Java assignment operator execution
Java
String
Equals
Assignment Operator
What's the difference between a string and a symbol in Ruby?
Ruby
String
Symbols
What is the purpose of the expression "new String(...)" in Java?
Java
String
How can I get a hex dump of a string in PHP?
Php
String
Encoding
Character Encoding
Hex
Difference between .ToString and "as string" in C#
C#
String
Tostring
PHP: Split string into array, like explode with no delimiter
Php
String
Arrays
Split
Explode
Python 3.1.1 string to hex
Python
String
Python 3.x
Hex
Most efficient way to get next letter in the alphabet using PHP
Php
String
Alphabet
CSS attribute selectors: The rules on quotes (", ' or none?)
Css
String
Css Selectors
How to copy std::string into std::vector<char>?
C++
String
Vector
Copy
Casting string to enum
C#
String
Casting
Enums
What is the best way to get the first letter from a string in Java, returned as a string of length 1?
Java
String
Split string by multiple delimiters
Ruby
String
Split
Why StringJoiner when we already have StringBuilder?
Java
String
Java 8
Stringbuilder
Javascript How to get first three characters of a string
Javascript
String
Replacing a character from a certain index
Python
Python 3.x
String
How do you convert a string to a byte array in .NET?
.Net
String
Bytearray
Quoting backslashes in Python string literals
Python
String
Splitting a string into words and punctuation
Python
String
Split
wordwrap a very long string
Css
String
Long Integer
Word Wrap
Finding last index of a string in Oracle
Oracle
String
C-Style Strings as template arguments?
C++
Templates
String
How do I print a non-null-terminated string using printf?
C
String
Printf
Difference between string and StringBuilder in C#
C#
String
Stringbuilder
Split camelCase word into words with php preg_match (Regular Expression)
Php
Regex
String
Preg Match
What is the best way to extract the first word from a string in Java?
Java
String
Android - how to replace part of a string by another string?
Java
Android
String
Simple way to count character occurrences in a string
Java
String
BSTR to std::string (std::wstring) and vice versa
C++
String
Com
Java, Calculate the number of days between two dates
Java
String
Date
Split a string using C++11
C++
String
Split
C++11
What is the use case for Ruby's %q / %Q quoting methods?
Ruby
String
Quotes
Compare one String with multiple values in one expression
Java
Regex
String
AngularJS: Insert HTML from a string
Html
String
Angularjs
String concatenation without '+' operator
Python
String
Optimization
Concatenation
String Concatenation
How to use StringBuilder wisely?
C#
.Net
String
Memory
Stringbuilder
Ruby: How to count the number of times a string appears in another string?
Ruby
String
Count
removing emojis from a string in Python
Python
String
Unicode
Special Characters
Emoji
Concatenate strings in python in multiline
Python
String
Concatenation
Detect whether a Python string is a number or a letter
Python
String
Ascii
How can I strip punctuation from a string?
C#
String
how to remove "," from a string in javascript
Javascript
String
How to replace Microsoft-encoded quotes in PHP
Php
String
Encoding
Character Encoding
Remove control characters from PHP string
Php
Regex
String
How do I format a number with a variable number of digits in Python?
Python
String
String Formatting
Number Formatting
How to find similar results and sort by similarity?
Mysql
Sql
String
Sorting
Similarity
Groovy String to Date
String
Parsing
Date
Groovy
Splitting a string / number every Nth Character / Number?
C#
.Net
String
Split
javascript regular expression to check for IP addresses
Javascript
Regex
String
String Matching
How do you get the string length in a batch file?
Windows
String
Batch File
Why can a string be assigned to a char* pointer, but not to a char[] array?
C
String
Pointers
Initialization
Reusability
Difference between getString() and getResources.getString()
Android
String
Resources
Best data structure for implementing a dictionary?
String
Algorithm
Dictionary
Data Structures
Is String Literal Pool a collection of references to the String Object, Or a collection of Objects
Java
String
Memory Management
Strange String pool behavior
Java
String
pep8 warning on regex string in Python, Eclipse
Python
String
Eclipse
Pydev
Pep8
Is "new String()" immutable as well?
Java
String
Immutability
Best way to split string by last occurrence of character?
C#
String
Split
How to strip a specific word from a string?
Python
String
Strip
How could I split a String into an array in Kotlin?
Java
Arrays
String
Kotlin
php String Concatenation, Performance
Php
String
Concatenation
String.Replace(char, char) method in C#
C#
String
Padding stl strings in C++
C++
String
Padding
Stdstring
The difference between + and & for joining strings in VB.NET
vb.net
String
Check if enum exists in Java
Java
String
Enums
Compare
Python: is using "..%(var)s.." % locals() a good practice?
Python
String
Design Patterns
Anti Patterns
How to generate a random String in Java
Java
String
Random
Char
C++ convert string to hexadecimal and vice versa
C++
String
Hex
In Java, how to find if first character in a string is upper case without regex
Java
String
Character Encoding
Char
JavaScript: indexOf vs. Match when Searching Strings?
Javascript
Regex
String
Client
Count specific character occurrences in a string
vb.net
String
How to split string into only two parts with a given character in Ruby?
Ruby
String
Split
Java collections convert a string to a list of characters
Java
String
Collections
Find first character that is different between two strings
Php
String
Is string::c_str() no longer null terminated in C++11?
C++
String
C++11
Most advisable way of checking empty strings in C#
C#
String
Comparison
How can I check if a string contains a character in C#?
C#
String
How do I find the index of a character in a string in Ruby?
Ruby
String
Indexing
Why does .ToString() on a null string cause a null error, when .ToString() works fine on a nullable int with null value?
C#
String
Null
Int
Nullable
TypeError: Can't convert 'int' object to str implicitly
Python
String
Int
Implicit
How to insert double quotes into String with interpolation in scala
String
Scala
Swift 3 incorrect string interpolation with implicitly unwrapped Optionals
Swift
String
Swift3
String Interpolation
How to check if a string contains a substring in Rust?
String
Rust
Is there any difference between "string" and 'string' in Python?
Python
String
Quotes
Double Quotes
Escaping Strings in JavaScript
Javascript
String
Escaping
Quotes
Backslash
Why is strncpy insecure?
C++
C
String
Strncpy
Get first 100 characters from string, respecting full words
Php
String
Looking for a good hash table implementation in C
C
String
Hashtable
Hash
Bad idea to use String key in HashMap?
Java
String
Map
Hashcode
How to extract file name from path?
String
Vba
Questions about Java's String pool
Java
String
String Pool
Regular expression to find two strings anywhere in input
Regex
String
How to use HashSet<string>.Contains() method in case -insensitive mode?
C#
String
Hashset
Regex to remove all special characters from string?
C#
Regex
String
Fastest way to check if a List<String> contains a unique String
Java
String
Performance
List
Contains
in python how do I convert a single digit number into a double digits string?
Python
String
Numbers
Digits
How to check if a character is upper-case in Python?
Python
String
In PHP, what does "<<<" represent?
Php
String
Operators
Heredoc
In Django models.py, what's the difference between default, null, and blank?
Python
Database
Django
String
Integer
Split a string by capital letters
C#
String
'IsNullOrWhitespace' in JavaScript?
Javascript
.Net
String
Is Empty
Isnullorempty
How to include a PHP variable inside a MySQL statement
Php
Mysql
Sql
String
Variables
Java - How do I make a String array with values?
Java
Arrays
String
Right-to-left string replace in Python?
Python
String
How can I sort a list of strings in Dart?
String
List
Sorting
Dart
Why does .net use the UTF16 encoding for string, but uses UTF-8 as default for saving files?
C#
.Net
String
Utf 8
Utf 16
How to check if C string is empty
C
String
How to convert QString to int?
C++
String
Qt
Int
Qstring
PHP variable interpolation vs concatenation
Php
String
Variables
Concatenation
String Interpolation
Java generating Strings with placeholders
Java
String
How can I check if a string only contains letters in Python?
Python
String
Conditional Statements
Compare String and Object in C#
C#
.Net
String
swift How to remove optional String Character
String
Swift
Print "\n" or newline characters as part of the output on terminal
Python
String
Newline
How do I convert a Vec<String> to Vec<&str>?
String
Vector
Rust
Type Conversion
How can I truncate an NSString to a set length?
Iphone
Objective C
Cocoa
String
Need a basename function in Javascript
Javascript
String
BufferedInputStream To String Conversion?
Java
String
Bufferedinputstream
How to insert a new line in strings in Android
Android
String
Enter
Insert a character at a specific location in a string
String
R
BigDecimal to string
Java
String
Bigdecimal
how to get the last part of a string before a certain character?
Python
String
Python 2.7
Split
Slice
Splitting on comma outside quotes
Java
Regex
String
Split
String.Format not work in TypeScript
Javascript
String
Typescript
String Formatting
Delete rows containing specific strings in R
R
String
Match
Rows
Convert array to JSON string in swift
Ios
Json
String
Swift
How do I convert between String, &str, Vec<u8> and &[u8]?
String
Rust
Type Conversion
Corrupted string in C#
C#
String
Why does the size of this Python String change on a failed int conversion
Python
String
Python 3.x
Unicode
Python Internals
Does C# have a String Tokenizer like Java's?
C#
String
Parsing
Are there any Fuzzy Search or String Similarity Functions libraries written for C#?
C#
.Net
String
Comparison
How do I escape a string inside JavaScript code inside an onClick handler?
Javascript
Html
String
Escaping
Fast String Hashing Algorithm with low collision rates with 32 bit integer
C++
Algorithm
String
Hash
How can I truncate a string to the first 20 words in PHP?
Php
String
Convert a string to integer with decimal in Python
Python
String
Integer
Decimal
How to Format dict string outputs nicely
Python
String
Formatting
Why is it not a good idea to dynamically create a lot of symbols in ruby (for versions before 2.2)?
Ruby
String
Symbols
How Can I Truncate A String In jQuery?
Javascript
Jquery
String
How to remove all non-alpha numeric characters from a string in MySQL?
Mysql
Regex
String
Alphanumeric
Perform a string operation for every element in a Python list
Python
String
List
String Operations
Ruby - replace the first occurrence of a substring with another string
Ruby
String
Replace
How to check if matching text is found in a string in Lua?
String
Lua
Conditional
String Matching
What is the best way to return string in C++?
C++
String
Javascript: Remove last character if a colon
Javascript
String
Replace
How can I tell if a VARCHAR variable contains a substring?
Sql
String
Contains
Sql Server-2012
Check if substring is in a list of strings?
Python
String
List
Change String-Array in Strings.xml to ArrayList
Java
Android
Arrays
String
Arraylist
How to repeat a String N times in R?
String
R
Repeat
How to split a Python string on new line characters
Python
String
Split
How to convert uint64 to string
String
Go
Type Conversion
Strconv
What is the difference between returning a char* and a char[] from a function?
C
String
Pointers
std::string s1 {"Modern C++", 3} vs std::string s1 {str, 3}
C++
String
C++17
Reverse the ordering of words in a string
Algorithm
Data Structures
String
string::size_type instead of int
C++
String
Int
Size Type
Get a Windows Forms control by name in C#
C#
Winforms
String
Controls
Accessibility
How to compare 2 strings alphabetically in PHP?
Php
String
Sorting
Rounding decimals with new Python format function
Python
String
Python 3.x
Remove all non-"word characters" from a String in Java, leaving accented characters?
Java
Regex
String
Can MySQL replace multiple characters?
Mysql
Sql
String
Replace
Array of strings in groovy
Arrays
String
Groovy
Javascript string replace with regex to strip off illegal characters
Javascript
Regex
String
Is there any way to detect strings like putjbtghguhjjjanika?
Php
Algorithm
String
identifier "string" undefined?
C++
String
C# IPAddress from string
C#
String
Ip Address
Bash: Split string into character array
String
Bash
javascript url-safe filename-safe string
Javascript
Regex
String
Filenames
Why are Python strings immutable? Best practices for using them
Python
String
Immutability
How to get integer values from a string in Python?
Python
String
Integer
How is GetHashCode() of C# string implemented?
C#
.Net
String
Hash
Gethashcode
PHP Find all occurrences of a substring in a string
Php
String
Read Assets file as string
Android
String
Format string unused named arguments
Python
String
String Formatting
Missing Data
Defaultdict
How to use formatted strings together with placeholders in Android?
Java
Android
String
Textview
How to truncate a string using str.format in Python?
Python
String
String Formatting
Why does one long string take MORE space than lots of small strings?
Java
Arrays
Eclipse
String
Bytecode
How to use stringByAddingPercentEncodingWithAllowedCharacters() for a URL in Swift 2.0
String
Swift
Swift2
Nscharacterset
Handlebarsjs check if a string is equal to a value
String
handlebars.js
Logical Operators
Difference between toLocaleLowerCase() and toLowerCase()
Javascript
Html
String
Localization
Locale
Subtract hours and minutes from time
Python
String
Datetime
Time
Why doesn't Python give any error when quotes around a string do not match?
Python
Python 3.x
String
Quotes
Detecting if a string is all CAPS
C#
String
What's a good way of doing string templating in .NET?
C#
.Net
String
Templating
How can I check if a word is contained in another string using PHP?
Php
String
How do I read a specified line in a text file?
C#
String
File Io
Input
C++ Remove new line from multiline string
C++
String
Multiline
Truncate string on whole words in .NET C#
C#
.Net
String
Truncate
What is the type of string literals in C and C++?
C++
C
String
Constants
Accessing object property as string and setting its value
C#
String
Eval
Accessor
Databinder
immutable strings vs std::string
C++
String
Immutability
Return the portion of a string before the first occurrence of a character in PHP
Php
String
Remove characters from a string
Javascript
String
Why should one not derive from c++ std string class?
C++
String
Inheritance
Stl
Using C# String.Format "{0:p0}" without the leading space before percentage sign
C#
String
What's a reasonable way to read an entire text file as a single string?
Ruby
String
File
Io
PHP remove commas from numeric strings
Php
String
Replace
Numbers
Comma
Split string into string array of single characters
C#
String
Split
What is the idiomatic scala way of finding, if a given string contains a given substring?
Regex
String
Scala
Substring
Contains
How to find char in string and get all the indexes?
Python
String
to_s vs. to_str (and to_i/to_a/to_h vs. to_int/to_ary/to_hash) in Ruby
Ruby
String
Methods
Split First name and Last name using JavaScript
Javascript
String
Parsing
First letter to upper case
R
String
How to check if a string is a valid regex in Python?
Python
Regex
String
Validation
Remove Last Two Characters in a String
Ios
Swift
String
Swift3
Difference between compact strings and compressed strings in Java 9
Java
String
Java 9
How can I split up a long f-string in Python?
Python
Python 3.x
String
F String
StringBuilder: how to get the final String?
C#
String
Stringbuilder
formatting long numbers as strings in python
Python
Formatting
String
Integer
What is the most efficient way to convert an int to a String?
Java
String
Should I return std::strings?
C++
String
Return Value
PHP - remove <img> tag from string
Php
String
Check if string doesn't contain another string
Sql Server
Tsql
String
inheritance from str or int
Python
String
Inheritance
Integer
New Operator
Substring in excel
Excel
String
Excel Formula
Substring
Format string dynamically
Python
String
Python: Converting string into decimal number
Python
String
Floating Point
Decimal
What is the shortest way to initialize List of strings in java?
Java
Arrays
String
List
Initialization
reading a line from ifstream into a string variable
C++
String
Ifstream
Getline
Convert String to int array in java
Java
Arrays
String
How to prevent java.lang.String.split() from creating a leading empty string?
Java
String
What happens to memory after '\0' in a C string?
C
String
Pointers
Malloc
C Strings
How to find lines containing a string in linux
Linux
String
File
Search
.toLowerCase not working, replacement function?
Javascript
String
Lowercase
Pandas column access w/column names containing spaces
Python
Pandas
String
Dataframe
Load node.js module from string in memory
String
node.js
File
Require
In C#, how to check whether a string contains an integer?
C#
String
Parsing
Integer
Tryparse
How to replace all spaces in a string
Javascript
Jquery
String
Replace
Working with Unicode code points in Swift
Ios
Swift
String
Unicode
Mongolian Vertical-Script
golang convert "type []string" to string
String
Go
Types
String Concatenation
'subscript' is unavailable: cannot subscript String with a CountableClosedRange<Int>, see the documentation comment for discussion
Swift
String
Swift4
Subscript
In C#: Add Quotes around string in a comma delimited list of strings
C#
String
How can I repeat a string N times in Perl?
String
Perl
Operators
Repeat
Remove end of line characters from Java string
Java
String
End of-Line
Getting hash of a list of strings regardless of order
C#
.Net
vb.net
String
Hash
Javascript multiple replace
Javascript
Regex
String
Replace
Javascript - return string between square brackets
Javascript
Regex
String
java replaceLast()
Java
String
Longest common substring from more than two strings
Python
String
Longest Substring
Count the number of times a string appears within a string
C#
String
Count
Isn't the size of character in Java 2 bytes?
Java
String
Char
Ruby read CSV file as UTF-8 and/or convert ASCII-8Bit encoding to UTF-8
Ruby
String
Encoding
Csv
Utf 8
Measure string size in Bytes in php
Php
String
String Length
Replace substring of NSAttributedString with another NSAttributedString
String
Cocoa
Replace
Nsattributedstring
Foundation
C# RegEx string extraction
C#
Regex
String
Why are strings immutable in many programming languages?
Java
C++
String
Immutability
Replace part of a string in Python?
Python
String
Python spacing and aligning strings
Python
String
Alignment
Check if a string isn't nil or empty in Lua
String
Lua
AngularJS Directive Passing String
Javascript
String
Angularjs
Angularjs Directive
Parameter Passing
Dollar Sign Character in Strings
String
Templates
Kotlin
Difference between string.empty and string[0] == '\0'
C++
String
How to use Android quantity strings (plurals)
Android
String
Android Resources
Plural
Eclipse/Java - Values in R.string.* return int?
Java
Android
String
Resources
Hexadecimal string to byte array in C
C
String
What's an easy way to get the url in the current window minus the domain name?
Javascript
String
Url
Better String formatting in Scala
String
Scala
Formatting
String Formatting
What is a Java String's default initial value?
Java
String
std::string vs string in c++
C++
String
Std
How to return all except last 2 characters of a string?
Javascript
String
Substring
Slice
Substr
Efficient way to compare version strings in Java
Java
String
Compare
How to read string from keyboard using C?
C
String
Scanf
Best way to loop over a python string backwards
Python
String
Optimization
Iterator
Reverse
What is the fastest way to iterate through individual characters in a string in C#?
C#
String
How to change 1 char in the string?
C#
.Net
String
How to sort a string's characters alphabetically?
Ruby
String
Sorting
How to prevent manual input into a ComboBox in C#
C#
String
Combobox
What makes reference comparison (==) work for some strings in Java?
Java
String
Equals
ComboBox.SelectedText doesn't give me the SelectedText
C#
Winforms
String
Combobox
Read file As String
Android
String
Optimization
How to convert text to binary code in JavaScript?
Javascript
String
Binary
How to dynamically add elements to String array?
Java
Arrays
String
Arraylist
python replace single backslash with double backslash
Python
String
Replace
Backslash
`string.replace` doesn’t change the variable
Javascript
String
Replace
Filter non-digits from string
Swift
String
Numbers
Why is "string" considered a simplified version of "String"?
C#
String
Visual Studio-2015
Fuzzy search algorithm (approximate string matching algorithm)
String
Algorithm
Search
Levenshtein Distance
Fuzzy Search
Counting the number of occurrences of a substring within a string in PostgreSQL
Sql
String
Postgresql
Is python += string concatenation bad practice?
Python
String
String Concatenation
Why does String.replaceAll() work differently in Java 8 from Java 9?
Java
Regex
String
Java 8
Java 9
Algorithm to find articles with similar text
String
Algorithm
Text
Language Agnostic
Similarity
Examples for string find in Python
Python
String
Find
How can I use the string value of a C# enum value in a case statement?
C#
String
Enums
Perform Trim() while using Split()
C#
String
Trim
String count with overlapping occurrences
Python
String
Search
string = string + int: What's behind the scenes?
C#
String
Casting
Integer
Regex allow a string to only contain numbers 0 - 9 and limit length to 45
Regex
String
String Matching
How are text editors generally implemented?
User Interface
Language Agnostic
String
Text Editor
How can val() return Number?
Javascript
Jquery
String
Numbers
How to convert string to long
Java
Android
String
Converter
Long Integer
Splitting a string by a character
C++
String
Algorithm
RegEx that will match the last occurrence of dot in a string
Javascript
Jquery
Regex
String
How to fix double-encoded UTF8 characters (in an utf-8 table)
Mysql
String
Utf 8
Character Encoding
Fast way to concatenate strings in nodeJS/JavaScript
Javascript
String
node.js
Concatenation
PHP convert string to hex and hex to string
Php
String
Hex
How to make IEnumerable<string>.Contains case-insensitive?
.Net
Arrays
String
Linq
Checking for a not null, not blank String in Java
Java
String
Reading a text file and splitting it into single words in python
Python
String
Split
How to read user input until EOF?
Python
String
Input
Eof
How is String in switch statement more efficient than corresponding if-else statement?
Java
String
If Statement
Switch Statement
How can I add " character to a multi line string declaration in C#?
C#
String
Escaping
How can I remove "\r\n" from a string in C#? Can I use a regular expression?
C#
asp.net
String
Carriage Return
In Java how does one turn a String into a char or a char into a String?
Java
String
Char
What is the difference between String and StringBuffer in Java?
Java
String
Stringbuilder
Stringbuffer
How to convert a "dd/mm/yyyy" string to datetime in SQL Server?
Tsql
String
Datetime
Split a string straight into variables
Javascript
String
Destructuring
Java Equivalent to .NET's String.Format
C#
Java
.Net
String
How can I find whitespace in a String?
Java
String
Space
Converting a sentence string to a string array of words in Java
Java
String
Spaces
Words
When did C++ compilers start considering more than two hex digits in string literal character escapes?
C++
String
Escaping
Literals
In Haskell, how do you trim whitespace from the beginning and end of a string?
String
Haskell
Trim
Removing Whitespace
How to split a string of space separated numbers into integers?
Python
Arrays
String
Split
Integer
TypeError: coercing to Unicode: need string or buffer
Python
String
Typeerror
Need to perform Wildcard (*,?, etc) search on a string using Regex
C#
.Net
Regex
String
Wildcard
I have a string whose content is a function name, how to refer to the corresponding function in Python?
Python
String
Function
String Evaluation
String concatenation in Java - when to use +, StringBuilder and concat
Java
String
Checking character length in ruby
Ruby
String
How to convert a String containing Scientific Notation to correct Javascript number format
Javascript
String
Numbers
Format
Why is datetime.strptime not working in this simple example?
Python
String
Datetime
Type Conversion
Datetime Format
How to do a verbatim string literal in VB.NET?
C#
vb.net
String
Escaping
Verbatim String
Remove all newlines from inside a string
Python
String
Newline
Substitution
How can I do multiple substitutions using regex?
Python
Regex
String
PostgreSQL : cast string to date DD/MM/YYYY
String
Postgresql
Date
Casting
Trim leading or trailing characters from a string?
Java
String
Trim
How to add a character at a particular index in string in Swift
Ios
String
Swift
Insert
How to input currency format on a text field (from right to left) using Swift?
Ios
Swift
String
Uitextfield
Nsnumberformatter
Efficiently repeat a character/string n times in Scala
String
Scala
Char
Concatenation
String Concatenation
Templates escaping in Kotlin multiline strings
String
Kotlin
Syntax
What is the difference between !r and %r in Python?
Python
String
Format
String Formatting
Advantages of using user-defined literal for strings instead of string literal
C++
String
C++14
User Defined-Literals
What's the difference between a string constant and a string literal?
Objective C
String
How to convert an integer to a string in Erlang?
String
Erlang
What is a good 64bit hash function in Java for textual strings?
Java
String
Hash
64 Bit
Collision
How can I use enum in C# for storing string constants?
.Net
String
Constants
Enums
Converting from a std::string to bool
C++
String
Boolean
Easiest way to parse a comma delimited string to some kind of object I can loop through to access the individual values?
C#
String
String Concatenation in EL
Java
String
Jsp
Jstl
El
C#: Limit the length of a string?
C#
Arrays
String
Limit
What does the Ruby method 'to_sym' do?
Ruby
String
Methods
Symbols
how to check if given c++ string or char* contains only digits?
C++
String
Pattern Matching
Can we rely on String.isEmpty for checking null condition on a String in Java?
Java
String
String: How to replace multiple possible characters with a single character?
Java
String
How to collapse a list of characters into a single string in R
String
R
String Concatenation
Splitting a string with multiple spaces
Java
Regex
String
Split
String literal with triple quotes in function definitions
Python
String
Literals
Sharing constant strings in Java across many classes?
Java
String
Split string with PowerShell and do something with each token
String
Powershell
Tokenize
Alternative to multiple String.Replaces
C#
String
Replace
Check if string ends with certain pattern
Java
Regex
String
Pattern Matching
Checking if string is numeric in dart
String
Numbers
Dart
Isnumeric
How to remove all characters before a specific character in Python?
Python
String
Replace
What's the best way to do string building/concatenation in JavaScript?
Javascript
String
Concatenation
Conventions
How to format a ZonedDateTime to a String?
Java
String
Java Time
Zoneddatetime
How to convert bytes type to dictionary?
Python
String
Dictionary
Capitalize a string
Python
String
How can I iterate through a string and also know the index (current position)?
C++
String
Iterator
htmlentities in PHP but preserving html tags
Php
Html
String
Replace
Html Entities
What is the correct way to compare char ignoring case?
C#
.Net
String
Comparison
Char
How is std::string implemented?
C++
String
Std
Cstring
String replaceAll() vs. Matcher replaceAll() (Performance differences)
Java
Regex
String
Replaceall
Can one initialize a Java string with a single repeated character to a specific length
Java
String
Initialization
C# Static class vs struct for predefined strings
C#
String
Struct
Static Classes
Count the number of lines in a Java String
Java
String
Lines
How can I left-align strings using String.format()?
Java
String
Alignment
string.format
C# Version Of SQL LIKE
C#
.Net
Sql
String
Cutting a string at nth occurrence of a character
Javascript
String
Substring
Slice
Why is one string greater than the other when comparing strings in JavaScript?
Javascript
String
Compare
Use string.Contains() with switch()
C#
String
If Statement
Switch Statement
Contains
Put and get String array from shared preferences
Android
Arrays
String
Sharedpreferences
How to split a string between letters and digits (or between digits and letters)?
Java
Regex
String
Difference between <string> and <string.h>?
C++
String
Header
Header Files
Use string in switch case in java
Java
String
Switch Statement
Concatenate multiple strings in XML?
Android
Xml
String
Initializing strings as null vs empty string
C++
String
Initialization
Comparing STL strings that use different allocators
C++
String
Memory Management
Stl
How to check if a String contains any letter from a to z?
C#
Windows
String
Char
How do I convert a single char to a string?
C#
String
Casting
Char
Append a single character to a string or char array in java?
Java
String
Append
Python - How can I pad a string with spaces from the right and left?
Python
String
Comparing two string arrays in C#
C#
.Net
String
Linq
Equality
How can I parse a String to BigDecimal?
Java
String
Parsing
Bigdecimal
Decimalformat
Wildcard string comparison in Javascript
Javascript
String
Comparison
"error: assignment to expression with array type error" when I assign a struct field (C)
C
Arrays
String
Struct
Initialization
How to append a character to a string in Golang?
String
Go
Concat
variable or field declared void
C++
String
Void
Concatenating strings in C, which method is more efficient?
C
String
Performance
Concatenation
How can I correctly assign a new string value?
C
String
Struct
Strcpy
What does the symbol \0 mean in a string-literal?
C++
C
String
Escaping
String Literals
How to format Double with dot?
Java
String
Format
Double
Convert string to datetime
Javascript
String
Date
Datetime
Type Conversion
How to find and replace string?
C++
String
javascript date to string
Javascript
String
Date
Remove trailing comma from comma-separated string
Java
String
How to remove the last character of a string in Golang?
String
Go
C# Generic constraints to include value types AND strings
C#
String
Generics
Constraints
Value Type
Problems converting byte array to string and back to byte array
Java
String
Encryption
Bytearray
Remove the last chars of the Java String variable
Java
String
Deprecated conversion from string literal to 'char*'
C++
String
Char
Deprecated
Literals
Double parameter with 2 digits after dot in strings.xml?
Android
String
Android Resources
Formatter
Check if a String is in an ArrayList of Strings
Java
String
List
Arraylist
C++ create string of text and variables
C++
String
Variables
Std
How to add text to an image in java?
Java
String
Image
Text
Graphics
Does Python have a built-in function for unindenting a multiline string?
Python
String
Indentation
Need to get a string after a "word" in a string in c#
C#
String
Substring
Simple way to check if a string contains another string in C?
C
String
Substring
Extract string between two strings in java
Java
Regex
String
How to replace a substring of a string
Java
String
Substring
Creating a UUID from a string with no dashes
Java
String
Clojure
Uuid
What is a regex to match ONLY an empty string?
Regex
String
Why does the string Remove() method allow a char as a parameter?
C#
String
Char
"" + something in C++
C++
String
java.util.UUID.randomUUID().toString() length
Java
String
Random
Uuid
String Length
'\0' evaluates false, "\0" evaluates true
C
Arrays
String
Null
Kernighan and-Ritchie
Chrome Dev Tools Issue With ES6 String Literals/Typescript
String
Google Chrome
Debugging
Typescript
Google Chrome-Devtools
What’s the best way to capitalise the first letter of each word in a string in SQL Server
Sql
Sql Server
String
Create NSString by repeating another string a given number of times
Objective C
Cocoa
String
How do you loop through a multiline string in Ruby?
Ruby
String
While Loop
Loops
In C#, what's the best way to spread a single-line string literal across multiple source lines?
C#
String
Coding Style
Convert a String into an Array of Characters
Php
Arrays
String
How to compress a String in Java?
Java
String
Compression
Zip
How do I shuffle the characters in a string in JavaScript?
Javascript
String
How to reverse an std::string?
C++
String
Binary
Reverse
How to persist a List of Strings in Hibernate?
Java
String
Hibernate
List
Annotations
Escape double quotes for JSON in Python
Python
String
What does the @ prefix do on string literals in C#
C#
.Net
String
Syntax
Literals
Making a javascript string sql friendly
Javascript
Sql
String
node.js
Escaping
int to String in Android
Android
String
What is the best way to iterate over the lines of a Java String?
Java
String
Loops
How to replace multiple items from a text string in PHP?
Php
String
Str Replace
Difference between "char" and "String" in Java
Java
String
Char
Remote debugging with XE2 - display of strings
String
Delphi
Debugging
Delphi Xe2
Remote Debugging
String split returns an array with more elements than expected (empty elements)
Javascript
Arrays
String
Split
What exactly is the L prefix in C++?
C++
String
Widestring
What is a good alternative of LTRIM and RTRIM in Java?
Java
String
Trim
A good way to make long strings wrap to newline?
Python
String
Python 3.x
Python 2.x
Splitting strings in PHP and get the last part
Php
String
How do I convert an Int to a String in C# without using ToString()?
C#
String
Algorithm
Int
How to convert a hex string to hex number
Python
String
Python 2.7
Hex
How to check if the given string is palindrome?
String
Language Agnostic
How do I get the length of a string in Perl?
Perl
String
How to create a random string using PHP?
Php
String
Random
Sizeof string literal
C++
String
Sizeof
How to get the last five characters of a string using Substring() in C#?
C#
String
Is there any way I can print String array without using for loop?
Java
Arrays
String
Converting a byte to a binary string in c#
C#
String
Binary
Byte
Is there a function to split a string in PL/SQL?
String
Oracle
Plsql
Split
Tokenize
C# - Insert a variable number of spaces into a string? (Formatting an output file)
C#
.Net
Visual Studio-2010
String
String Formatting
How to split strings into characters in Scala
String
Scala
Character Encoding
Split
Character
Passing regex modifier options to RegExp object
Javascript
Regex
String
How can I shortern my command line prompt's current directory?
Bash
String
Path
Ps1
Converting from JSONArray to String then back again
Java
Android
String
Json
how to count new lines in a very big string?
Php
String
Count
Assign result of dynamic sql to variable
Sql Server
String
How to count characters in a unicode string in C
C
String
Unicode
Ascii
Converting a vector<int> to string
C++
String
Vector
String.format() and hex numbers in Java
Java
String
Formatting
Hex
Twos Complement
Remove specific characters from a string in Javascript
Javascript
String
Javascript: How to retrieve the number of decimals of a *string* number?
Javascript
String
Numbers
Decimal
string in namespace std does not name a type
C++
String
Namespaces
Std
Regex number between 1 and 100
Regex
String
Case-insensitive string startswith in Python
Python
String
Performance
Case Insensitive
Startswith
Extracting pairs of words using String.split()
Java
Regex
String
Split
What is a Python bytestring?
Python
String
Laravel str_random() or custom function?
String
Function
Random
Laravel
Uuid
How to find index of STRING array in Java from a given value?
Java
Arrays
String
Position
Make part of a UILabel bold in Swift
Ios
String
Swift
Uilabel
Nsrange
What does !r do in str() and repr()?
Python
String
Python 2.7
Formatting
Repr
Why doesn't Ruby have a real StringBuffer or StringIO?
Ruby
String
Io
Buffer
How do I do a fuzzy match of company names in MYSQL with PHP for auto-complete?
Mysql
String
Matching
Fuzzy Search
How can I measure the similarity between 2 strings?
C#
String
Comparison
Phonetics
C++ .NET convert System::String to std::string
.Net
C++
String
Marshalling
How do I get str.translate to work with Unicode strings?
Python
Unicode
String
Why are python strings and tuples are made immutable?
Python
String
Immutability
Tuples
Converting upper-case string into title-case using Ruby
Ruby
String
Java swing: Multiline labels?
Java
String
Swing
Multiline
Jlabel
How can I get a character in a string by index?
C#
.Net
String
Indexof
Does JavaScript have literal strings?
Javascript
String
String Literals
Ruby: convert string to date
Ruby
String
Date
Grab remaining text after last "/" in a php string
Php
String
Replace \n with <br />
Python
String
Replace
Newline
Java: Simplest way to get last word in a string
Java
String
Is a new line = \n OR \r\n?
Php
String
Compare string similarity
C#
.Net
String
Algorithm
String Comparison
how to check string start in C++
C++
String
Which String method: "contains" or "indexOf > -1"?
Java
String
Substring
Hive: Convert String to Integer
String
Hive
User Defined-Functions
Hiveql
How to set object property (of object property of..) given its string name in JavaScript?
Javascript
String
Properties
Nested
Java Unicode String length
Java
String
Utf 8
Utf 16
Unicode String
Concatenation of Strings and characters
Java
String
String Concatenation
Javascript: Returning the last word in a string
Javascript
String
Substring
How to get the Index of second comma in a string
C#
.Net
String
Indexof
What's the difference between raw string interpolation and triple quotes in scala
String
Scala
String Interpolation
How to convert string to date to string in Swift iOS?
Ios
String
Swift
Nsdate
Nsdateformatter
Golang converting from rune to string
String
Parsing
Go
Unicode
Rune
Can I import Python's 3.6's formatted string literals (f-strings) into older 3.x, 2.x Python?
Python
String
F String
What is a quick way to force CRLF in C# / .NET?
C#
.Net
String
Newline
Format a double value like currency but without the currency sign (C#)
C#
String
Format
Currency
String similarity metrics in Python
Python
Algorithm
String
Levenshtein Distance
Java. Ignore accents when comparing strings
Java
String
Compare
How to check if letter is upper or lower in PHP?
Php
String
Utf 8
Product code looks like abcd2343, how to split by letters and numbers?
Python
String
Split
Java: Split string when an uppercase letter is found
Java
Regex
String
C# removing substring from end of string
C#
String
Textbox
Ruby post title to slug
Ruby
String
Lowercase
Gsub
Removing control characters from a string in python
Python
String
Python 3.x
Convert string to date in my iPhone app
Ios
String
Cocoa Touch
Date Formatting
C# string comparison ignoring spaces, carriage return or line breaks
C#
.Net
String
XOR operation with two strings in java
Java
String
Operators
Xor
Concatenating a variable and a string literal without a space in PowerShell
String
Powershell
How to remove the character at a given index from a string in C?
C
String
Validate a file name on Windows
Java
Regex
Windows
String
Filenames
intern() behaving differently in Java 6 and Java 7
Java
String
Java 7
Java 6
String Interning
Equivalent of ASP's .Contains method
Javascript
Jquery
String
How can I use backslashes (\) in a string?
Javascript
String
Substring
Backslash
Append Char To String in C?
C
String
Why do seemingly empty files and strings produce md5sums?
String
Null
Md5sum
someString.IndexOf(someString) returns 1 instead of 0 under .NET 4
C#
String
.Net 4.0
.Net 3.5
Insert variable values in the middle of a string
C#
String
Windows PATH to posix path conversion in bash
Windows
String
Bash
Path
Msys
How to force Ruby string to n characters
Ruby
String
Variables
String Length
Java, return if trimmed String in List contains String
Java
Arrays
String
List
Obtain SHA-256 string of a string
C#
String
Hash
Sha256
Multiple strings, Truncate line at 80 characters
String
Bash
Awk
Extract Number from String in Python
Python
String
Python 3.x
"==" in case of String concatenation in Java
Java
String
What's the difference between ResponseWriter.Write and io.WriteString?
String
Http
Go
Slice
lower() vs. casefold() in string matching and converting to lowercase
Python
String
How to convert list<String> into String in Dart without iteration?
String
List
Dart
What are the different methods to parse strings in Java?
Java
String
Parsing
How can I split multiple joined words?
String
Nlp
What is the best way to slurp a file into a string in Perl?
Perl
String
File Io
File
Case insensitive string replacement in JavaScript?
Javascript
String
Replace
Case Insensitive
Question about strpos: how to get 2nd occurrence of a string?
Php
String
Sqlite convert string to date
String
Sqlite
Date
Date Format
Validating IPv4 string in Java
Java
String
Validation
Ip
Why is StringTokenizer deprecated?
Java
String
Split
Deprecated
Stringtokenizer
Split string into array
Javascript
Arrays
String
Split
How to dynamically allocate memory space for a string and get that string from user?
C
String
Memory Management
Malloc
Dynamic
Case-insensitive Array#include?
Ruby
String
Python string to unicode
Python
String
Unicode
Python 2.x
Python Unicode
How to get a string back from AsyncTask?
Android
String
Android Asynctask
How do I read the first line of a string?
Python
String
SQL Server converting varbinary to string
Sql
Sql Server
String
Varbinary
What is the difference between memcmp, strcmp and strncmp in C?
C
String
C Strings
How to extract a string between two delimiters
Java
String
Split
Simplest inline method to left pad a string
Javascript
String
String termination - char c=0 vs char c='\0'
C
String
C Strings
Null Terminated
Ansi C
How to check for palindrome using Python logic
Python
String
Palindrome
Sublime Text: Regex to convert Uppercase to Title Case?
Regex
String
Sublimetext
Sublimetext3
Detect if a string contains uppercase characters
C#
Regex
String
Check whether a string contains one of multiple substrings
Ruby on-Rails
Ruby
String
Ruby 2.1
About the changing id of an immutable string
Python
String
Immutability
Python Internals
Swift Get string between 2 strings in a string
Ios
String
Swift
Substring
Python3 and hmac . How to handle string not being binary
Python
String
Python 3.x
Encoding
Hmac
How to split a string by new lines in Swift
Arrays
String
Swift
Newline
The fastest C++ algorithm for string testing against a list of predefined seeds (case insensitive)
C++
String
Windows
Algorithm
Expression implicitly coerced from 'String?' to Any
Swift
String
Optional
The output -1 becomes a slash in the loop
Java
String
While Loop
Jvm
Jit
Static Constants in C#
C#
String
Constants
Efficient way to search a stream for a string
Java
Algorithm
String
Search
Stream
Convert integers to strings to create output filenames at run time
String
Integer
Fortran
Replace the last part of a string
Java
Regex
String
Replace
Removing new line characters from NSString
Ios
Objective C
Iphone
String
Does VBScript have a substring() function?
String
Vbscript
How the StringBuilder class is implemented? Does it internally create new string objects each time we append?
C#
.Net
String
Stringbuilder
Casting an int to a string in Python
Python
String
Integer
Concatenation
Get the string after a string from a string
Php
String
How to properly free a std::string from memory
C++
String
What is the best way to create a string array in python?
Python
Arrays
String
c# Fastest way to remove extra white spaces
C#
String
Replace
Whitespace
Removing Whitespace
How does StringBuilder work internally in C#?
C#
.Net
String
Stringbuilder
How do I encode a string to base64 using only boost?
C++
String
Boost
Base64
String interning in .Net Framework - What are the benefits and when to use interning
C#
.Net
String
Performance
String Interning
Proper way to empty a C-String
C
String
Strcpy
Would a Java HashSet<String>'s contains() method test equality of the strings or object identity?
Java
String
Reference
Hashset
What is the Java's internal represention for String? Modified UTF-8? UTF-16?
Java
String
Encoding
Utf 8
Utf 16
Does it make sense to define a final String in Java?
Java
String
Final
How to replace first occurrence of string in Java
Java
String
Replace
Scala - Get last two characters from string
String
Scala
Does C have a string type?
C
String
Char
Printf
Strcpy
Find a string of text in an element and wrap some span tags round it
Jquery
String
Text
Extract email sub-strings from large document
Python
String
Using getline() in C++
C++
String
Getline
Detecting if a string has unique characters: comparing my solution to "Cracking the Coding Interview?"
Java
String
Algorithm
Big O
Time Complexity
Get the last character of a string without using array?
Swift
String
What is difference between mutable and immutable String in java
Java
String
Immutability
Mutable
Stringbuffer
Why is variable1 += variable2 much faster than variable1 = variable1 + variable2?
Python
Html
String
Performance
Python Internals
Extract the text out of HTML string using JavaScript
Javascript
Html
String
Text
Extract
Formatting Phone number in Swift
Ios
String
Swift
Uitextfield
String Formatting
Deleting Specific Substrings in Strings [Swift]
Swift
String
Ignore case in Python strings
Python
String
Case Insensitive
How do you validate that a string is a valid IPv4 address in C++?
C++
String
How to compare ends of strings in C?
C
String
Pass a string by reference in Javascript
Javascript
String
Pass by-Reference
Reversing a string in JavaScript
Javascript
String
concatenate char array in C
C
String
Arrays
how to do bitwise exclusive or of two strings in python?
Python
String
Bitwise Operators
Convert a delimted string to a dictionary<string,string> in C#
C#
String
Dictionary
Delimiter
Problems with newline in Graphics2D.drawString
Java
String
Newline
Graphics2d
Find the index of the first digit in a string
Python
Regex
String
C++ string to double conversion
C++
String
File
Double
random byte string in python
Python
String
Random
Hex
Split string by single spaces
C++
String
C string append
C
String
Is there a way to represent a long string that doesnt have any whitespace on multiple lines in a YAML document?
String
Yaml
How create an array from the output of an array printed with print_r?
Php
Arrays
String
Variables
Type Conversion
Python here document without newlines at top and bottom
Python
String
Printing
Heredoc
Math operations from string
Python
String
Math
Java split String performances
Java
String
Performance
Optimization
Split
Concatenate String in String Objective-c
Objective C
Ios
String
Delete everything after part of a string
Java
Android
String
Replace
How to extract last part of string in bash?
String
Bash
Awk
How to "instanceof" a primitive string (string literal) in JavaScript
Javascript
String
Instanceof
String Literals
Replace all quotes in a string with escaped quotes?
Python
String
Replace
Simplest way of checking for string that contains a string in list?
Python
String
List
Confusing output from String.split
Java
Regex
String
Class
Core
How to create a static array of strings?
Arrays
String
Static
Rust
Padding a number with zeros
Ruby
String
Difference between String, FormattableString, IFormattable
C#
String
Formattable
Iformattable
Formattablestring
Remove first x number of characters from each row in a column of a Python dataframe
Python
String
Pandas
Dataframe
Replace
What are the supported Swift String format specifiers?
Swift
String
String Formatting
Which loop has better performance? Why?
Java
Performance
String
Garbage Collection
C++: is string.empty() always equivalent to string == ""?
C++
String
How to convert NSMutableData to NSString on iPhone?
Iphone
String
Typeconverter
In C - check if a char exists in a char array
C
Arrays
String
Char
Remove spaces from a string in C
C
String
Spaces
Are there any better methods to do permutation of string?
C++
Algorithm
String
Permutation
Why doesn't the String class in Java implement Iterable?
Java
String
Iterable
Extract time from date String
Java
String
Date
Time
Preferred conversion from char (not char*) to std::string
C++
String
Char
Type Conversion
Replacing one character in a string in Objective-C
Objective C
Ios
String
Nsstring
String#count options
Ruby
String
Will std::string always be null-terminated in C++11?
C++
String
C++11
Language Lawyer
Null Terminated
StringBuffer is obsolete?
Java
String
Stringbuilder
Stringbuffer
Perl - If string contains text?
String
Perl
String Matching
How can I securely embed a static string (key) in C#?
C#
.Net
String
Windows Phone-7
C# 4.0
myString.replace( VARIABLE, "") ...... but globally
Javascript
String
Variables
Replace
Braces around string literal in char array declaration valid? (e.g. char s[] = {"Hello World"})
C++
C
String
Arrays
Array Initialization
Java get String CompareTo as a comparator object
Java
String
Object
Comparator
How to copy a string of std::string type in C++?
C++
String
Copy
Fatal Error: Invalid Layout of java.lang.String at value
Java
Android
Eclipse
String
Fatal Error
How to convert hex string to Java string?
Java
String
Hex
Get substring after the first = symbol in Ruby
Ruby
String
String literal matches bool overload instead of std::string
C++
String
Boolean
Overloading
Overload Resolution
Can JSON numbers be quoted?
Json
String
Parsing
Numbers
Quotes
Replacing accented characters with plain ascii ones
Javascript
Regex
String
Utf 8
Why does the string returned by ctime() contain a line feed?
C++
C
String
Time
Std
Concatenate number with string in Swift
String
Nsstring
Swift
How does "+var === +var" work internally to verify if var is numeric?
Javascript
String
Validation
Numbers
Split text after the second occurrence of character
Python
Python 3.x
String
Split
Golang Convert String to io.Writer?
String
Go
Writer
Should I avoid converting to a string if a value is already a string?
Python
String
Is there a string formatting operator in R similar to Python's %?
Python
R
String
Format
How can I use f-string with a variable, not with a string literal?
Python
Python 3.x
String
String Formatting
F String
initializing std::string from char* without copy
C++
String
Memory Management
Stl
print spaces with String.format()
Java
String
Format
C++ Compare char array with string
C++
String
String Comparison
Insert string in beginning of another string
Java
String
How can I make the map::find operation case insensitive?
C++
String
Dictionary
Stl
Case Insensitive
How to make a Ruby string safe for a filesystem?
Ruby on-Rails
Ruby
String
Filesystems
Fuzzy Regular Expressions
Regex
String
Fuzzy Search
Fuzzy Comparison
Tre Library
Why does the string type have a .ToString() method?
C#
String
Finding a substring in a NSString object
Objective C
String
Nsstring
Substring
How to select first 10 words of a sentence?
Php
String
Substring
Trim
Is there a LINQ function for getting the longest string in a list of strings?
C#
String
Linq
Convert binary string into integer
C#
.Net
String
Binary
How to change spaces to underscore and make string case insensitive?
Java
Android
String
Case Insensitive
Replaceall
PHP to write Tab Characters inside a file?
Php
String
Csv
Tsv
Convert string to date in bash
String
Bash
Shell
Unix
Date
Create a mutable java.lang.String
Java
String
Security
Converting a Bash array into a delimited string
Arrays
String
Bash
Csv
Java: String concat vs StringBuilder - optimised, so what should I do?
Java
String
Append
Concatenation
Stringbuilder
How to check if two words are anagrams
Java
String
Algorithm
Anagram
Difference between null and empty string
Java
String
Null
Nullpointerexception
splitting a string based on tab in the file
Python
String
Split
Converting a hex string to a byte array
C++
String
Hex
Get short date for System Nullable datetime (datetime ?) in C#
C#
.Net
String
Datetime
Nullable
Removing double quotes from a string in Java
Java
String
Replace
c++ std::ostringstream vs std::string::append
C++
String
Stream
How to split a string in Swift
String
Swift
Split
How to parse timezone with colon
Python
String
Datetime
Strptime