본문으로 건너뛰기

Text.BetweenDelimiters

Text.BetweenDelimiters

Syntax

Text.BetweenDelimiters(
text as text,
startDelimiter as text,
endDelimiter as text,
optional startIndex as any,
optional endIndex as any
) as any

Remarks

지정한 startDelimiter과(와) endDelimiter 사이의 text 부분을 반환합니다. 선택적 숫자 startIndex은(는) 고려해야 하는 startDelimiter을(를) 나타냅니다. 선택적 목록 startIndex은(는) 고려해야 하는 startDelimiter과(와) 인덱싱을 입력의 처음부터 실행해야 하는지, 아니면 끝부터 실행해야 하는지를 나타냅니다. endIndex은(는) 인덱싱이 startIndex을(를) 기준으로 실행된다는 점을 제외하고 비슷합니다.

Examples

Example #1

(첫 번째) 여는 괄호와 이후에 오는 (첫 번째) 닫는 괄호 사이의 "111 (222) 333 (444)" 부분을 가져옵니다.

Text.BetweenDelimiters("111 (222) 333 (444)", "(", ")")

Result:

"222"

Example #2

두 번째 여는 괄호와 이후에 오는 첫 번째 닫는 괄호 사이의 "111 (222) 333 (444)" 부분을 가져옵니다.

Text.BetweenDelimiters("111 (222) 333 (444)", "(", ")", 1, 0)

Result:

"444"

Example #3

끝에서 두 번째 여는 괄호와 이후에 오는 두 번째 닫는 괄호 사이의 "111 (222) 333 (444)" 부분을 가져옵니다.

Text.BetweenDelimiters("111 (222) 333 (444)", "(", ")", {1, RelativePosition.FromEnd}, {1, RelativePosition.FromStart})

Result:

"222) 333 (444"

Category

Text.Transformations