버전
menu_open

Appendix A. Regular Expression Quick Reference Guide

Anchors

^

Start of string, or start of line in multi-line pattern

$

End of string, or end of line in multi-line pattern

\b

Word boundary

\B

Not word boundary

Character Classes

\s

White space

\S

Not white space

\d

Digit

\D

Not digit

\w

Word

\W

No Word

\x

Hexadecimal digit (Used for matching hex code characters, such as "\xA9", as in "0xA9", for the copyright symbol; or "\x5B", as in "0x5B", for the open square bracket.)


Quantifiers

*

White space

+

Not white space

?

Digit

{3}

Exactly 3

{3,}

3 or more

{3,5}

3, 4, or 5


Escape Sequences

\

Escape following character

^ [ . $ { * ( \ + ) | ? < >


Special Characters

\n

New line

\r

Carriage return

\t

Tab


Groups and Ranges

.

Any character except new line (\n)

\r

Carriage return

(a|b)

a or b

(...)

Group

(?:...)

Passive (non-c­apt­uring) group

[abc]

Range (a or b or c)

[^abc]

Not (a or b or c)

[a-q]

Lower case letter from a to q

[A-Q]

Upper case letter from A to Q

[0-7]

Digit from 0 to 7


String Replacement

$n

nth non-passive group

$2

"xyz" in /^(abc(xyz))$/

$1

"xyz" in /^(?:abc)(xyz)$/

$`

Before matched string

$'

After matched string

$+

Last matched string

$&

Entire matched string


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요