Common String Operations

suggest change

Padding a string to a fixed length

Correctly reversing a string

Formatting a string

Checking for an empty string using String.IsNullOrEmpty and String.IsNullOrWhiteSpace

Getting x characters from the right side of a string

Convert a decimal number to binary, octal, and hexadecimal

Trimming Unwanted Characters Off the Start and/or End of Strings

Construct a string from Array

Formatting using ToString

Splitting a String by specific character

Joining an array of strings into a new one

Getting a char at specific index and enumerating the string

Determine whether a string begins with a given sequence

Splitting a String by another string

Getting Substrings of a given string

Replacing a string within a string

Changing the case of characters within a String

Concatenate an array of strings into a single string

String Concatenation

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents