Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

부분 문자열

항목값
화면 이름Substring
식별자substringV1
지원 실행 방식Batch, Faster, Streaming
범주숫자 (Numeric)
반환 자료형String

문자열에서 부분 문자열을 추출합니다.

입력 인자

이름지정 여부자료형의미와 조건
Expression필수Expression<String>부분 문자열을 추출할 표현식입니다.
Start필수Expression<Integer>추출을 시작할 인덱스이며 해당 위치를 포함합니다. 1부터 세고 음수는 문자열 끝에서 셉니다.
Length선택Expression<Integer>추출할 문자열 길이입니다. 생략하면 나머지 문자열 전체를 추출합니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Expression: string
  • Start: start
  • Length: length
stringstartlength출력
hello, world15hello
hello, world85world
hello, world-55world

예시 2: 기본 동작

길이를 지정하지 않으면 문자열 끝까지 추출합니다.

인자 값:

  • Expression: string
  • Start: start
  • Length: null
stringstart출력
hello, world1hello, world
hello, world8world
hello, world-5world

예시 3: null 처리

null 입력에서는 결과가 null입니다.

인자 값:

  • Expression: string
  • Start: start
  • Length: length
stringstartlength출력
null15null
hello, worldnull5null
hello, world1nullnull
nullnullnullnull

예시 4: 경계 조건

요청한 길이가 남은 문자열보다 길면 끝까지 반환합니다.

인자 값:

  • Expression: string
  • Start: start
  • Length: length
stringstartlength출력
hello, world-510world
hello, world120hello, world
hello, world125d
hello, world135empty string
hello, world205empty string
hello, world12-5empty string