perl 정규 표현식
Language/PERL 2012. 5. 16. 08:55Perl 정규표현식 Regular Expression
- 1. perlretut (Perl regular expressions tutorial) 번역
- 1.1. Part 1: 기본 The basics
- 1.1.1. 간단한 단어 매칭 Simple word matching
- 1.1.2. 캐릭터 클래스 Using character classes
- 1.1.3. 이것 아니면 저것에 매치 Matching this or that
- 1.1.4. 그룹짓기와 계층적 매칭 Grouping things and hierarchical matching
- 1.1.5. 매치된 부분 추출 Extracting matchers
- 1.1.6. 백레퍼런스 Backreferences
- 1.1.7. 상대적 백레퍼런스 Relative backreferences
- 1.1.8. 이름을 붙인 백레퍼런스 Named backreferences
- 1.1.9. 캡처 그룹 번호 리셋 Alternative capture group numbering
- 1.1.9.1. 그룹 번호 리셋 내용 보충
- 1.1.11. 캡처되지 않는 그룹 Non-capturing groupings
- 1.1.12. 반복 매치 Matching repetitions
- 1.1.13. 독점적 수량자 Possessive quantifiers
- 1.1.13.1. 독점적 수량자 내용 보충
- 1.1.15. Using regular expression in Perl
- 1.1.15.1. 치환 방지 Prohibiting substitution
- 1.1.15.2. 글로벌 매칭 Global matching
- 1.1.15.3. 검색과 치환 Search and replace
- 1.1.15.4. split 연산자 The split operator
- 1.1.15.5. 패턴 평가 최적화 Optimizing pattern evaluation
- 1.2.1. 캐릭터, 스트링, 캐릭터 클래스 More on characters, strings, and character class
- 1.2.2. 정규표현식 컴파일 및 저장 Compiling and saving regular expressions
- 1.2.3. 런타임에 정규표현식 생성하기 Composing regular expressions at runtime
- 1.2.4. 정규식 내에 주석과 modifier 삽입 Embedding comments and modifiers in a regular expression
- 1.2.5. 앞뒤 살펴보기 Looking ahead and looking behind
- 1.2.6. 백트래킹을 금지하는 독립적인 부분표현식 Using independent subexpressions to prevent backtracking
- 1.2.7. 조건부 정규표현식 Conditional expressions
- 1.2.7.1. 조건부 표현식 내용 보충
- 1.2.9. 재귀적 패턴 Recursive patterns
- 1.2.9.1. 재귀적 패턴 보충
- 1.2.11. 백트래킹 제어 명령어 Backtracking control verbs
- 1.2.12. 프라그마와 디버깅 Pragmas and debugging
- 1.4. 참고 SEE ALSO
- 2.1. /g , /c modifier 예 - 간단한 파서
- 2.2. lookaround
- 3.1. qr// 에 대하여
- 3.1.1. aero 님의 코멘트
- 3.3. non-greedy quantifier를 쓸 때 주의
- 5. comments
- 출처 - http://gypark.pe.kr/wiki/Perl/%EC%A0%95%EA%B7%9C%ED%91%9C%ED%98%84%EC%8B%9D