Repository: dream-ellie/regex Branch: master Commit: f86a8d6763d7 Files: 2 Total size: 2.0 KB Directory structure: gitextract_i9_xh900/ ├── README.md └── practice.txt ================================================ FILE CONTENTS ================================================ ================================================ FILE: README.md ================================================ # 정규 표현식 정리 ![regex](./regex.png) ## [강의 영상 ← 클릭](https://youtu.be/t3M6toIflyQ) 공부방법, 사용 예제, 유용한 사이트에 대한 정보는 유튜브 영상에서 확인해 보세요 🙌 연습용 사이트: [regexr.com/5mhou](https://regexr.com/5ml92) ## 문법 정리 ### Groups and ranges | Character | 뜻 | | --------- | -------------------------------------- | | `\|` | 또는 | | `()` | 그룹 | | `[]` | 문자셋, 괄호안의 어떤 문자든 | | `[^]` | 부정 문자셋, 괄호안의 어떤 문가 아닐때 | | `(?:)` | 찾지만 기억하지는 않음 | ### Quantifiers | Character | 뜻 | | ----------- | ----------------------------------- | | `?` | 없거나 있거나 (zero or one) | | `*` | 없거나 있거나 많거나 (zero or more) | | `+` | 하나 또는 많이 (one or more) | | `{n}` | n번 반복 | | `{min,}` | 최소 | | `{min,max}` | 최소, 그리고 최대 | ### Boundary-type | Character | 뜻 | | --------- | ---------------- | | `\b` | 단어 경계 | | `\B` | 단어 경계가 아님 | | `^` | 문장의 시작 | | `$` | 문장의 끝 | ### Character classes | Character | 뜻 | | --------- | ---------------------------- | | `\` | 특수 문자가 아닌 문자 | | `.` | 어떤 글자 (줄바꿈 문자 제외) | | `\d` | digit 숫자 | | `\D` | digit 숫자 아님 | | `\w` | word 문자 | | `\W` | word 문자 아님 | | `\s` | space 공백 | | `\S` | space 공백 아님 | ================================================ FILE: practice.txt ================================================ Hi there, Nice to meet you. And Hello there and hi. I love grey(gray) color not a gry, graay and graaay. grdy Ya ya YaYaYa Ya abcdefghijklmnopqrstuvwxyz ABSCEFGHIJKLMNOPQRSTUVWZYZ 1234567890 .[]{}()\^$|?*+ 010-898-0893 010 898 0893 010.898.893 010-405-3412 02-878-8888 dream.coder.ellie@gmail.com hello@daum.net hello@daum.co.kr http://www.youtu.be/-ZClicWm0zM https://www.youtu.be/-ZClicWm0zM https://youtu.be/-ZClicWm0zM youtu.be/-ZClicWm0zM