Splits the first argument string with a separator string (second argument string, which can be a regular expression) to produce a list of strings (tokens).
String
split(<parameters>)
Parameter | Type |
---|---|
input string | string |
separator string | string |
split(<input string>, <separator string>)
Returns a listString.
split("A_B_C", "_")
Returns ["A","B","C"]
Example with an event field ‘event.appVersion’ with value: “20.45.2.3434”
split(@event{event.appVersion}, "\\.")
Returns ["20", "45", "2", "3434"]