Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
구분항목내용 설명
기본 매치원본소스Hello, world
RexpHello
First MatchHello, world
All matchesHello, world
Rexphello
First MatchHello, world
All matchesHello, world

^ 캐럿 - First 매치

$ 달러 - Last 매치

원본소스who is who
Rexp^who
First Matchwho is who
All matcheswho is who
Rexpwho$
First Matchwho is who
All matcheswho is who
Escape원본소스$12$\-\ $25$
Rexp^$
First Match$12$\-\ $25$
All matches$12$\-\ $25$
Rexp\$
First Match$12$\-\ $25$
All matches$12$\-\ $25$
Rexp^\$
First Match$12$\-\ $25$
All matches$12$\-\ $25$
Rexp\$$
First Match$12$\-\ $25$
All matches$12$\-\ $25$
Rexp\\
First Match$12$\-\ $25$
All matches$12$\-\ $25$
.원본소스Reqular expressions are powerfull!!!
Rexp.Any character
First MatchReqular expressions are powerfull!!!
All matchesRegular expressions are powerfull!!!모든 문자
Rexp......
First MatchReqular expressions are powerfull!!!
All matchesRregular expressions are powerful!!!6개씩 선택되므로, 나머지 5는 선택되지 않음
원본소스O.K.
Rexp.
First MatchO.K.
All matchesO.K.
Rexp\.
First MatchO.K.
All matchesO.K.
Rexp\..\.
First MatchO.K.
All matchesO.K.

[]

스퀘어 브라켓

원본소스How do you do?
Rexp[oyu][] 괄호사이는 문자하나를 의미
First MatchHow do you do?
All matchesHow do you do?
Rexp[dH].
First MatchHow do you do?
All matchesHow do you do?
Rexp[owy][yow]
First MatchHow do you do?
All matchesHow do you do?oy, oo, ow, wy, wo, ww, yy, yo, yw 중에서 선택됨

-

데시

원본소스

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


Rexp[C-K][CDEFGHIJK] 와 같음
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


Rexp[a-d]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


Rexp[2-6]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


Rexp[C-Ka-d2-6]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789



Rexp[^CDghi45][^] 스퀘어 브라켓 안의 ^은 Not을 의미한다.

First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789



All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789