question about string "\" sign
-
Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!
-
Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!
Copied from MSDN Library: Escaped character Description \a Matches a bell (alarm) \u0007. \b Matches a backspace \u0008 \t Matches a tab \u0009. \r Matches a carriage return \u000D. \v Matches a vertical tab \u000B. \f Matches a form feed \u000C. \n Matches a new line \u000A. \e Matches an escape \u001B. \040 Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. (For more information, see Backreferences.) For example, the character \040 represents a space. \x20 Matches an ASCII character using hexadecimal representation (exactly two digits). \cC Matches an ASCII control character; for example, \cC is control-C. \u0020 Matches a Unicode character using hexadecimal representation (exactly four digits).
-
Copied from MSDN Library: Escaped character Description \a Matches a bell (alarm) \u0007. \b Matches a backspace \u0008 \t Matches a tab \u0009. \r Matches a carriage return \u000D. \v Matches a vertical tab \u000B. \f Matches a form feed \u000C. \n Matches a new line \u000A. \e Matches an escape \u001B. \040 Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. (For more information, see Backreferences.) For example, the character \040 represents a space. \x20 Matches an ASCII character using hexadecimal representation (exactly two digits). \cC Matches an ASCII control character; for example, \cC is control-C. \u0020 Matches a Unicode character using hexadecimal representation (exactly four digits).
This seems to be copied from the documentation about regular expressions, not the C# documentation. The escapes are quite similar, though.
-
This seems to be copied from the documentation about regular expressions, not the C# documentation. The escapes are quite similar, though.
-
Hey ;-) I'm looking for a list with all the "\" signals for strings. I do know that \n is start another line, and \t is for tabbing, but what \r is doing, and what other signs exist. thanks!
What character escape sequences are available?[^] Michael CP Blog [^] Development Blog [^]