정규식 목록

문자:

결과/사용자

임의의 문자

달리 지정하지 않으면 주어진 문자를 나타냅니다.

.

줄 바꿈 또는 단락 나누기를 제외한 모든 단일 문자를 나타냅니다. 예를 들어, 검색 용어 "sh.rt"는 "shirt"와 "short"를 모두 반환합니다.

^

단락 시작 부분에 있는 검색 용어만 찾습니다. 단락 시작 부분에 있는 빈 필드나 문자 기준 위치 프레임과 같은 특수 개체는 무시합니다. 예를 들어, "^Peter"와 같은 경우가 있습니다.

$

단락 끝에 있는 검색 용어만 찾습니다. 단락 끝에 있는 빈 필드나 문자 기준 위치 프레임과 같은 특수 개체는 무시합니다.! 예: "Peter$".

$ on its own matches the end of a paragraph. This way it is possible to search and replace paragraph breaks.

*

* 앞의 문자 중 0개 이상을 찾습니다. 예를 들어, "Ab*c"는 "Ac", "Abc", "Abbc", "Abbbc" 등을 찾습니다.

+

+ 앞의 문자 중 한 개 이상을 찾습니다. 예를 들어, "AX.+4"는 "AXx4"는 찾지만 "AX4"는 찾지 않습니다.

항상 단락에서 이 검색 패턴과 일치하는 가장 긴 문자열을 찾습니다. 단락에 "AX 4 AX4" 문자열이 있으면 전체 줄이 강조 표시됩니다.

?

"?" 앞의 문자 중 0개나 한 개를 찾습니다. 예를 들어, "Texts?"는 "Text"와 "Texts"를 찾고 "x(ab|c)?y"는 "xy", "xaby" 또는 "xcy"를 찾습니다.

\

검색은 "\" 뒤에 나오는 특수 문자를 정규 표현식이 아닌 보통 문자로 해석합니다(\n, \t, \>, \< 조합 제외). 예를 들어, "tree\."는 "tree."를 검색하지만 "treed" 또는 "trees"를 검색하지 않습니다.

\n

Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Find and Replace boxes, and then perform a search and replace.

\n in the Find text box stands for a line break that was inserted with the Shift+Enter key combination.

\n in the Replace text box stands for a paragraph break that can be entered with the Enter or Return key.

\t

Represents a tab. You can also use this expression in the Replace box.

\b

Match a word boundary. For example, "\bbook" finds "bookmark" but not "checkbook" whereas "book\b" finds "checkbook" but not "bookmark". The discrete word "book" is found by both search terms.

^$

빈 단락을 찾습니다.

^.

단락의 첫 문자를 찾습니다.

& 또는 $0

Adds the string that was found by the search criteria in the Find box to the term in the Replace box when you make a replacement.

For example, if you enter "window" in the Find box and "&frame" in the Replace box, the word "window" is replaced with "windowframe".

You can also enter an "&" in the Replace box to modify the Attributes or the Format of the string found by the search criteria.

[abc123]

괄호 사이의 문자 중 하나를 나타냅니다.

[a-e]

시작과 끝 글자를 포함하여 a와 e 사이에 있는 모든 문자를 나타냅니다.

문자는 코드 번호에 따라 정렬됩니다.

[a-eh-x]

a-e 및 h-x 사이의 모든 문자를 나타냅니다.

[^a-s]

a와 s 사이에 있는 않은 모든 것을 나타냅니다.

\uXXXX

\UXXXXXXXX

Represents a character based on its four-digit hexadecimal Unicode code (XXXX).

For obscure characters there is a separate variant with capital U and eight hexadecimal digits (XXXXXXXX).

For certain symbol fonts the code for special characters may depend on the used font. You can view the codes by choosing Insert - Special Character.

|

"|" 이전에 나타나는 용어와 "|" 이후에 나타나는 용어를 찾습니다. 예를 들어, "this|that"은 "this"와 "that"를 찾습니다.

{2}

여는 괄호 앞에 있는 문자의 수를 정의합니다. 예를 들어, "tre{2}"은(는) "tree"을(를) 찾고 선택합니다.

{1,2}

여는 괄호 앞에 올 수 있는 문자의 최소 및 최대 개수를 정의합니다. 예를 들어, "tre{1,2}"은(는) "tre" 및 "tree"을(를) 찾고 선택합니다.

{1,}

여는 괄호 앞의 문자가 나타날 수 있는 최소 횟수를 지정합니다. 예를 들어, "tre{2,}"는 "tree", "treee" 및 "treeeee"를 찾습니다.

( )

In the Find box:

괄호 안의 문자를 참조로 지정합니다. 그런 다음 "\1"을 사용하여 현재 식의 첫 번째 참조를 참조하고 "\2"를 사용하여 현재 식의 두 번째 참조를 참조할 수 있습니다.

예를 들어, 텍스트에 13487889라는 숫자가 있는 상태에서 정규식인 (8)7\1\1을 사용하여 검색하면 "8788"을 찾습니다.

()를 사용하여 용어를 그룹화할 수도 있습니다. 예를 들어, "a(bc)?d"는 "ad" 또는 "abcd"를 찾습니다.

In the Replace box:

참조자를 교체하려면 \ (backslash) 대신 $ (dollar) 기호를 사용하십시오. 검색된 모든 문자열을 교체하려면 $0을 사용하십시오.

[:alpha:]

Represents an alphabetic character. Use [:alpha:]+ to find one or more of them.

[:digit:]

Represents a decimal digit. Use [:digit:]+ to find one or more of them.

[:alnum:]

영숫자 문자([:alpha:] 및 [:digit:])를 나타냅니다.

[:space:]

스페이스(다른 공백 문자는 제외)를 나타냅니다.

[:print:]

인쇄 가능한 문자를 나타냅니다.

[:cntrl:]

단락 기호를 나타냅니다.

[:lower:]

옵션에서 대/소문자 구분을 선택하면 소문자를 나타냅니다.

[:upper:]

옵션에서 대/소문자 구분을 선택하면 대문자를 나타냅니다.


예제

e([:digit:])? -- finds 'e' followed by zero or one digit. Note that currently all named character classes like [:digit:] must be enclosed in parentheses.

^([:digit:])$ -- finds lines or cells with exactly one digit.

복잡한 검색을 위해 검색어들을 조합할 수 있습니다.

단락에서 3자리 숫자만 찾으려면

^[:digit:]{3}$

^ 은 결과가 단락의 시작에 있어야 한다는 것을 나타내고,

[:digit:] 은 어떤 숫자도 나타낼 수 있습니다.

{3} 은 "숫자"의 사본이 정확히 3개가 있어야 함을 나타내고,

$ 은 결과가 단락의 끝에 있어야 한다는 것을 나타냅니다.