Left trim string

サポート対象:バッチ、高速

Removes the given characters from the start of a string. Without characters, removes spaces only, not other whitespace.

式のカテゴリー: データ準備、文字列

引数

  • Expression: The string to trim.
    Expression<String>
  • 任意 Characters: Each character in this string is removed. Defaults to a space.
    Expression<String>

出力タイプ: String

例

例1:基本ケース

引数の値:

  • Expression: hello world
  • Characters: null

出力: hello world


例2:基本ケース

引数の値:

  • Expression: xyxhello worldyx
  • Characters: xy

出力: hello worldyx


例3:Null ケース

引数の値:

  • Expression: string
  • Characters: characters
stringcharacters出力
nullxnull
xhellonullnull
nullnullnull

例4:エッジケース

説明: Without characters, only spaces are removed, not tabs, newlines or other whitespace.

引数の値:

  • Expression: string
  • Characters: null
string出力
hellohello

hello

hello
  hello  hello
empty string
empty stringempty string
nullnull