728x90

 

  • \n → 개행 문자
  • \t → 탭 문자
  • \\ → 백슬래시 (\)
  • \xNN → 16진수 ASCII 문자 변환
  • \uNNNN → 유니코드 변환
Hello
World! This is a tab:	Tabbed

 

using System.Text.RegularExpressions;

string escapedString = "Hello\\nWorld! This is a tab:\\tTabbed";
string unescapedString = Regex.Unescape(escapedString);

 

 

 

728x90
Posted by 바르마스
,