Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

구분항목내용 설명
기본 매치원본소스Hello, world
RegExpHello
First MatchHello, world
All matchesHello, world
RegExp
hello
First MatchHello, world
All matchesHello, world

^(캐럿) - First 매치

$(달러) - Last 매치

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

[]

스퀘어 브라켓

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

-

데시

원본소스

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


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

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


RegExp
[a-d]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


RegExp
[2-6]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


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

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


대괄호 내에서의 ^RegExp
[^CDghi45][^] 스퀘어 브라켓 안의 ^은 Not을 의미한다.
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


RegExp
[^W-Z]
First Match

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


All matches

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz 0123456789


서브패턴원본소스Monday Tuesday Friday
RegExp(on|ues|rida)
First MatchMonday Tuesday Friday
All matchesMonday Tuesday Friday
RegExp
(Mon|Tues|Fri)day
First MatchMonday Tuesday Friday
All matchesMonday Tuesday Friday
RegExp
..(id|esd|nd)ay앞에 두글자 & (내용OR) & ay
First MatchMonday Tuesday Friday
All matchesMonday Tuesday Friday

수량자 (*, +, ?)

Quantifiers

원본소스aabc abc bc
RegExp
a*ba* → 0...*
First Matchaabc abc bc
All matchesaabc abc bca+ → 1...*
RegExp
a+b
First Matchaabc abc bc
All matchesaabc abc bc
RegExp
a?ba? → 0...1
First Matchaabc abc bc
All matchesaabc abc bc
* 수량자 조합원본소스-@- *** -- "*" -- *** -@-
RegExp
.*
First Match-@- *** -- "*" -- *** -@-
All matches-@- *** -- "*" -- *** -@-
RegExp
-A*-A* → 0...*
First Match-@- *** -- "*" -- *** -@-
All matches-@- *** -- "*" -- *** -@-
RegExp
[-@]*
First Match-@- *** -- "*" -- *** -@-
All matches-@- *** -- "*" -- *** -@-
+ 수량자 조합원본소스-@@@- * ** - - "*" -- * ** -@@@-
RegExp
\*+
First Match-@@@- * ** - - "*" -- * ** -@@@-
All matches-@@@- * ** - - "*" -- * ** -@@@-
RegExp
-@+-
First Match-@@@- * ** - - "*" -- * ** -@@@-
All matches-@@@- * ** - - "*" -- * ** -@@@-
RegExp
[^ ]+공백이 아닌것이 1개이상
First Match-@@@- * ** - - "*" -- * ** -@@@-
All matches-@@@- * ** - - "*" -- * ** -@@@-
? 수량자 조합원본소스--XX-@-XX-@@-XX-@@@-XX-@@@@-XX-@@-@@-
RegExp
-X?XX?X
First Match--XX-@-XX-@@-XX-@@@-XX-@@@@-XX-@@-@@-
All matches--XX-@-XX-@@-XX-@@@-XX-@@@@-XX-@@-@@-
RegExp
-@?@?@?---, -@-, -@@-, -@@@-
First Match--XX-@-XX-@@-XX-@@@-XX-@@@@-XX-@@-@@-
All matches--XX-@-XX-@@-XX-@@@-XX-@@@@-XX-@@-@@-
{} 수량 제한원본소스One ring to bring them all and in the darkness bind them
RegExp
.{5}어떠한 문자건 5글자
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExp
[els]{1,3}e,l,s 문자 1~3 개
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExp
[a-z]{3,}
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
*,+,? 와 {}수량제한

















원본소스AA ABA ABBA ABBBA
RegExp
AB*A
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
RegExp
AB{0,}AB{0,} → B가 0...*
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
RegExp
AB+A
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
RegExp
AB{1,}A
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
RegExp
AB?A
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
RegExp
AB{0,1}A
First MatchAA ABA ABBA ABBBA
All matchesAA ABA ABBA ABBBA
*? → 0원본소스One ring to bring them all and in the darkness bind them
RegExp
r.*
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExp
r.*?*? → 0
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExp
r.+
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExpr.+?+? → 1
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExpr.?
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them
RegExpr.???? → 0
First MatchOne ring to bring them all and in the darkness bind them
All matchesOne ring to bring them all and in the darkness bind them

Greedy 선택자

Lazy 선택자

원본소스<div>test</div><div>test2</div2>
RegExp<div>.+</div>Greedy (탐욕적인)
First Match<div>test</div><div>test2</div2>
All matches<div>test</div><div>test2</div2>
RegExp<div>.+?</div>Lazy (게으른)
First Match<div>test</div><div>test2</div2>
All matches<div>test</div><div>test2</div2>

소스A1 B2 c3 d_4 e:5 ffGG77--____--
RegExp\w
First MatchA1 B2 c3 d_4 e:5 ffGG77--____--
All matchesA1 B2 c3 d_4 e:5 ffGG77--____--
RegExp\w*
First MatchA1 B2 c3 d_4 e:5 ffGG77--____--
All matchesA1B2c3d_4e:5ffGG77--____--
RegExp[a-z]\w*
First MatchA1 B2 c3 d_4 e:5 ffGG77--____--
All matchesA1 B2 c3 d_4 e:5 ffGG77--____--
RegExp\w{5}
First MatchA1 B2 c3 d_4 e:5 ffGG77--____--
All matchesA1 B2 c3 d_4 e:5 ffGG77--____--
RegExp[A-z0-9]
First MatchA1 B2 c3 d_4 e:5 ffGG77--____--
All matchesA1B2c3d_4e:5ffGG77--____--