File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 5959 - [ 대소문자 구분없음] ( #51-대소문자-구분없음 )
6060 - [ 전체 검색] ( #52-전체-검색 )
6161 - [ 멀티 라인] ( #53-멀티-라인 )
62+ - [ 탐욕적 vs 게으른 매칭] (#6 -탐욕적-vs-게으른 매칭)
6263
6364## 1. 기본 매쳐
6465
401402
402403[ Test the regular expression] ( https://regex101.com/r/E88WE2/1 )
403404
405+ ## 6. 탐욕적 vs 게으른 매칭
406+ 기본적으로 정규 표현식은 탐욕적(greedy) 매칭을 수행하는데, 이는 가능한 한 길게 매칭하는 것을 의미한다.
407+ 우리는 ` ? ` 를 사용하여 게으른(lazy) 방법 매칭할 수 있으며, 가능한 한 짧게 매칭하는 것을 의미한다.
408+
409+ <pre >
410+ "/(.*at)/" => <a href =" #learn-regex " ><strong >The fat cat sat on the mat</strong ></a >.
411+ </pre >
412+
413+ [ Test the regular expression] ( https://regex101.com/r/AyAdgJ/1 )
414+
415+ <pre >
416+ "/(.*?at)/" => <a href =" #learn-regex " ><strong >The fat</strong ></a > cat sat on the mat.
417+ </pre >
418+
419+ [ Test the regular expression] ( https://regex101.com/r/AyAdgJ/2 )
420+
404421## 기여 방법
405422
406423* 이슈 리포팅
You can’t perform that action at this time.
0 commit comments