programing

탈옥 캐릭터는 다 뭐야?

sourcejob 2022. 9. 29. 00:14
반응형

탈옥 캐릭터는 다 뭐야?

Java의 이스케이프 문자를 알고 있습니다.

\n : Newline
\r : Carriage return
\t : Tab
\\ : Backslash
...

어딘가에 완전한 목록이 있나요?

전체 목록은 여기에서 찾을 수 있습니다.

  • \t이 시점에서 텍스트에 탭을 삽입합니다.
  • \b이 시점에서 텍스트에 백스페이스를 삽입합니다.
  • \n이 시점에서 텍스트에 새 행을 삽입합니다.
  • \r이 시점에서 캐리지 리턴을 텍스트에 삽입합니다.
  • \f이 시점에서 텍스트에 폼피드를 삽입합니다.
  • \s이 시점에서 텍스트에 공백을 삽입합니다.
  • \'이 시점에서 텍스트에 단일 따옴표를 삽입합니다.
  • \"이 시점에서 텍스트에 큰따옴표를 삽입합니다.
  • \\이 시점에서 텍스트에 백슬래시 문자를 삽입합니다.
Java Escape Sequences:

\u{0000-FFFF}  /* Unicode [Basic Multilingual Plane only, see below] hex value 
                  does not handle unicode values higher than 0xFFFF (65535),
                  the high surrogate has to be separate: \uD852\uDF62
                  Four hex characters only (no variable width) */
\b             /* \u0008: backspace (BS) */
\t             /* \u0009: horizontal tab (HT) */
\n             /* \u000a: linefeed (LF) */
\f             /* \u000c: form feed (FF) */
\r             /* \u000d: carriage return (CR) */
\"             /* \u0022: double quote (") */
\'             /* \u0027: single quote (') */
\\             /* \u005c: backslash (\) */
\{0-377}       /* \u0000 to \u00ff: from octal value 
                  1 to 3 octal digits (variable width) */

기본 다국어 플레인은 0x0000 ~0xFFF(0~65535)의 Unicode 값입니다.추가 평면은 Java에서만 여러 문자로 지정할 수 있습니다: 이집트 상속 문자 A054(laying down dooe)는U+1303F/𓀿그리고 그 안에 침입해야 할 필요가 있다."\uD80C\uDC3F"(UTF-16) (Java 문자열용)일부 다른 언어에서는 다음과 같은 상위 평면을 지원합니다."\U0001303F".

네, 아래는 문서 링크입니다.Java에서 이스케이프 문자의 전체 목록을 찾을 수 있는 Oracle.

이스케이프 문자 앞에는 항상 "\"가 붙으며 다음 행으로 이동 등의 특정 작업을 수행할 때 사용됩니다.

이스케이프 문자에 대한 자세한 내용은 다음 링크를 참조하십시오.

https://docs.oracle.com/javase/tutorial/java/data/characters.html

이들은 문자열을 조작하기 위해 사용되는 이스케이프 문자입니다.

\t  Insert a tab in the text at this point.
\b  Insert a backspace in the text at this point.
\n  Insert a newline in the text at this point.
\r  Insert a carriage return in the text at this point.
\f  Insert a form feed in the text at this point.
\'  Insert a single quote character in the text at this point.
\"  Insert a double quote character in the text at this point.
\\  Insert a backslash character in the text at this point.

자세한 내용은 여기를 참조하십시오.

http://docs.oracle.com/javase/tutorial/java/data/characters.html

또한 이전 버전의 Java가 지원되었습니다.\v폼 피드용.

송신원: java/util/regex/Pattern.java:

2600         case 'v':
2601             // '\v' was implemented as VT/0x0B in releases < 1.8 (though
2602             // undocumented). In JDK8 '\v' is specified as a predefined
2603             // character class for all vertical whitespace characters.
2604             // So [-1, root=VertWS node] pair is returned (instead of a
2605             // single 0x0B). This breaks the range if '\v' is used as
2606             // the start or end value, such as [\v-...] or [...-\v], in
2607             // which a single definite value (0x0B) is expected. For
2608             // compatibility concern '\013'/0x0B is returned if

언급URL : https://stackoverflow.com/questions/1367322/what-are-all-the-escape-characters

반응형