
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
List down a list of the escape characters in C#
The following is the list of escape characters in C# −
Escape character | Description | Pattern |
---|---|---|
\a | Matches a bell character, \u0007. | \a |
\b | In a character class, matches a backspace, \u0008. | [\b]{3,} |
\t | Matches a tab, \u0009. | (\w+)\t |
\r | Matches a carriage return, \u000D. (\r is not equivalent to the newline character, .) | \r (\w+) |
\v | Matches a vertical tab, \u000B. | [\v]{2,} |
\f | Matches a form feed, \u000C. | [\f]{2,} |
Matches a new line, \u000A. | \r (\w+) | |
\e | Matches an escape, \u001B. | \e |
nn | Uses octal representation to specify a character (nnnconsists of up to three digits). | \w\040\w |
\x nn | Uses hexadecimal representation to specify a character (nn consists of exactly two digits). | \w\x20\w |
\c X\c x | Matches the ASCII control character that is specified by X or x, where X or x is the letter of the control character. | \cC |
\u nnnn | Matches a Unicode character by using hexadecimal representation (exactly four digits, as represented by nnnn). | \w\u0020\w |
\ | When followed by a character that is not recognized as an escaped character, matches that character. | \d+[\+-x\*]\d+\d+[\+-x\*\d+ |
- Related Articles
- Convert list of strings and characters to list of characters in Python
- Escape Characters in Python
- Escape characters in JavaScript
- List down all the Tables in a MySQL Database
- Convert a String to a List of Characters in Java
- Convert List of Characters to String in Java
- How to remove a list of characters in string in Python?
- List down the differences between Selenium and UTP.
- Ways to print escape characters in C#
- Ways to print escape characters in python
- List down the name of the Web drivers supported by Selenium.
- How to convert a list of characters into a string in C#?
- Golang Program to demonstrate the escape sequence characters
- How to list down all the running queries in MySQL?
- Java program to convert a list of characters into a string

Advertisements