1. Dot
2. Character class
- [ ]: 각 괄호 안에 적은 문자들 중 어느 하나
ex. [aeiou]s : s앞에 a,e,i,o,u중 어느 것이 와도 된다.
- ^: 나열된 문자를 제외한 임의의 하나의 문자
- ^: 찾고자 하는 문자열이 라인의 맨 처음에 있는 경우만 골라내고자 할 때
- $: 찾고자 하는 문자열이 라인의 맨 끝에 있는 경우만 골라내고자 할 때
- ?: 그 앞의 표현이 없거나 1개 있음을 나타낸다.(0또는 1개)
- +: 1개이상, *: 0개이상
- 반복되는 횟수 지정 가능
- {n,}: n번 이상, {n}, 정확히 n번 반복된것
- (.) -> \1\n : 어절별로 끊어라
- ^\n -> : 빈줄없게 만들어라. (^기호는 한줄의 가장 첫번째 문자인 것들에만 제한되서 문자열을 찾아주는 기능)
- #2.+ ->#2 : #2.+ 은 #2를 포함 그 뒤를 모두 #2로 바꿔라
- (#[0-9]) -> \1@ : #0부터 9까지 뒤에 @를 붙여라
- \t+$ : 행의 마지막칸을 없애라
- a+$: 행의 가장 마지막문자가 a인 것들을 찾아라
- ^#1.+\n: 처음이 #1로 시작되는 문자열을 행바꿈까지 없애버려라
- (.+#3.+) -> @@\1 : #3이 포함된 ( )안의 문자열 그대로 두고 맨 앞에 @@를 붙여라
- (.+)\t(.+)\t(.+) -> \1\3 : 첫번째 괄호와 세번째 괄호는 남겨두고 두번째 괄호는 없애라
- (.+)(.+) -> \2\t\1 : 1번과 2번 순서를 바꾸고 그 사이에 탭을 넣어라
http://www.emeditor.org/en/howto_search_replacement_expression_syntax.html
How to: Replacement Expression Syntax
Replacement Expression Syntax Replacement expressions can be used when using regular expression or number range to replace. The following expressions are available for the Replace With box in the Replace dialog box and in the Replace in Files dialog box. \
www.emeditor.org
http://www.emeditor.org/en/howto_search_search_regexp_syntax.html
How to: Regular Expression Syntax
Regular Expression Syntax EmEditor regular expression syntax is based on Perl regular expression syntax. Literals All characters are literals except: ".", "*", "?", "+", "(", ")", "{", "}", "[", "]", "^", "$", "|", and "\". These characters are literals wh
www.emeditor.org
'한국어 교육 KOREAN EDUCATION > 인문학을 위한 컴퓨터' 카테고리의 다른 글
유닉스 명령어 기초 (0) | 2022.01.20 |
---|
댓글