split

使用分隔符串(第二個參數字串,可以是規則運算式)來分割第一個參數字串,以產生字串清單(Token)。

類別

String

函式語法

split(<parameters>)

參數

參數 類型
輸入字串 字串
分隔符字串 字串

簽名和傳回類型

split(<input string>, <separator string>)

傳回listString。

範例

split(["A_B_C"], "_")

傳回["A","B","C"]

事件欄位為event.appVersion的範例,其值為:"20.45.2.3434"

split(@{event.appVersion}, "\\.")

傳回["20", "45", "2", "3434"]

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now