以分隔字串分割第一個引數字串(第二個引數字串,可以是規則運算式),以產生字串清單(代號)。
字串
split(<parameters>)
參數 | 類型 |
---|---|
輸入字串 | 字串 |
分隔符號字串 | 字串 |
split(<input string>, <separator string>)
傳回listString。
split(["A_B_C"], "_")
傳回 ["A","B","C"]
具有值「20.45.2.3434」的事件欄位「event.appVersion」的範例
split(@{event.appVersion}, "\\.")
傳回 ["20", "45", "2", "3434"]