구분 | 항목 | 내용 | 설명 |
기본 매치 | 원본소스 | Hello, world | |
RegExp | Hello | ||
First Match | Hello, world | ||
All matches | Hello, world | ||
RegExp | hello | ||
First Match | Hello, world | ||
All matches | Hello, world | ||
^(캐럿) - First 매치 $(달러) - Last 매치 | 원본소스 | who is who | |
RegExp | ^who | ||
First Match | who is who | ||
All matches | who is who | ||
RegExp | who$ | ||
First Match | who is who | ||
All matches | who 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 Match | Reqular expressions are powerfull!!! | ||
All matches | Regular expressions are powerfull!!! | 모든 문자 | |
RegExp | ...... | ||
First Match | Reqular expressions are powerfull!!! | ||
All matches | Rregular expressions are powerful!!! | 6개씩 선택되므로, 나머지 5는 선택되지 않음 | |
원본소스 | O.K. | ||
RegExp | . | ||
First Match | O.K. | ||
All matches | O.K. | ||
RegExp | \. | ||
First Match | O.K. | ||
All matches | O.K. | ||
RegExp | \..\. | ||
First Match | O.K. | ||
All matches | O.K. | ||
[] 스퀘어 브라켓 | 원본소스 | How do you do? | |
RegExp | [oyu] | [] 괄호사이는 문자하나를 의미 | |
First Match | How do you do? | ||
All matches | How do you do? | ||
RegExp | [dH]. | ||
First Match | How do you do? | ||
All matches | How do you do? | ||
RegExp | [owy][yow] | ||
First Match | How do you do? | ||
All matches | How 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 Match | Monday Tuesday Friday | ||
All matches | Monday Tuesday Friday | ||
RegExp | (Mon|Tues|Fri)day | ||
First Match | Monday Tuesday Friday | ||
All matches | Monday Tuesday Friday | ||
RegExp | ..(id|esd|nd)ay | 앞에 두글자 & (내용OR) & ay | |
First Match | Monday Tuesday Friday | ||
All matches | Monday Tuesday Friday | ||
수량자 (*, +, ?) Quantifiers | 원본소스 | aabc abc bc | |
RegExp | a*b | a* → 0...* | |
First Match | aabc abc bc | ||
All matches | aabc abc bc | a+ → 1...* | |
RegExp | a+b | ||
First Match | aabc abc bc | ||
All matches | aabc abc bc | ||
RegExp | a?b | a? → 0...1 | |
First Match | aabc abc bc | ||
All matches | aabc 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 Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | [els]{1,3} | e,l,s 문자 1~3 개 | |
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | [a-z]{3,} | ||
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
*,+,? 와 {}수량제한 | 원본소스 | AA ABA ABBA ABBBA | |
RegExp | AB*A | ||
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
RegExp | AB{0,}A | B{0,} → B가 0...* | |
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
RegExp | AB+A | ||
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
RegExp | AB{1,}A | ||
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
RegExp | AB?A | ||
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
RegExp | AB{0,1}A | ||
First Match | AA ABA ABBA ABBBA | ||
All matches | AA ABA ABBA ABBBA | ||
*? → 0 | 원본소스 | One ring to bring them all and in the darkness bind them | |
RegExp | r.* | ||
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | r.*? | *? → 0 | |
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | r.+ | ||
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | r.+? | +? → 1 | |
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | r.? | ||
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
RegExp | r.?? | ?? → 0 | |
First Match | One ring to bring them all and in the darkness bind them | ||
All matches | One ring to bring them all and in the darkness bind them | ||
Greedy 선택자 Lazy 선택자 | 원본소스 | <div>test</div><div>test2</div> | |
RegExp | <div>.+</div> | Greedy (탐욕적인) | |
First Match | <div>test</div><div>test2</div> | ||
All matches | <div>test</div><div>test2</div> | ||
RegExp | <div>.+?</div> | Lazy (게으른) | |
First Match | <div>test</div><div>test2</div> | ||
All matches | <div>test</div><div>test2</div> | ||
Character classes (\w 단어 선택자) | 소스 | A1 B2 c3 d_4 e:5 ffGG77--____-- | 알파벳, 숫자, 언더라인 = 단어 |
RegExp | \w | 단어 | |
First Match | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
All matches | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
RegExp | \w* | ||
First Match | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
All matches | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
RegExp | [a-z]\w* | ||
First Match | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
All matches | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
RegExp | \w{5} | 문자5개 | |
First Match | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
All matches | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
RegExp | [A-z0-9] | ||
First Match | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
All matches | A1 B2 c3 d_4 e:5 ffGG77--____-- | ||
\W (단어가 아닌것) | 소스 | AS _34:AS11.23 @#$ %12^* | |
RegExp | \W | \w 와 반대 의미, 단어가 아닌것 (공백 특수문자등) | |
First Match | AS _34:AS11.23 @#$ %12^* | ||
All matches | AS _34:AS11.23 @#$ %12^* | ||
RegExp | \w | ||
First Match | AS _34:AS11.23 @#$ %12^* | ||
All matches | AS _34:AS11.23 @#$ %12^* | ||
RegExp | [^A-z0-9_] | ||
First Match | AS _34:AS11.23 @#$ %12^* | ||
All matches | AS _34:AS11.23 @#$ %12^* | ||
\d | [0-9] | 숫자만 | |
\D | [^0-9] | 숫자가 아닌것 | |
\b 워드 바운더리 | 소스 | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | |
RegExp | \b. | ||
First Match | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
All matches | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | 공백도 선택됨 | |
RegExp | \b\w | ||
First Match | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
All matches | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | 단어의 맨앞 글자만 선택됨 | |
RegExp | \w\b | ||
First Match | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
All matches | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
문서의 처음 과 끝 | RegExp | \A... | 문서내에서 처음 (^는 라인단위 이다.) |
First Match | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
All matches | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
RegExp | ...\Z | 문서내에서 마지막 ($)는 라인단위 이다. | |
First Match | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
All matches | Ere iron was found or tree was hewn, When young was mountain under moon; Ere ring was made, or wrought was woe, It walked the forests long age. | ||
선택자 제외 | 소스 | AAAX---aaax---111 | |
RegExp | \w+(?=X) | ||
First Match | AAAX---aaax---111 | ||
All matche | AAAX---aaax---111 | ||
RegExp | \w+ | ||
First Match | AAAX---aaax---111 | ||
All matche | AAAX---aaax---111 | ||
RegExp | \w+(?=\w) | 선택된 문자중 마지막 문자제외 | |
First Match | AAAX---aaax---111 | ||
All matche | AAAX---aaax---111 |
Overview
Content Tools
1 Comment
Anonymous