Constructor
new TextSplitAction()
- Source:
Examples
//Split the string in "myStringProperty" at the delimiter ";" and save the result in the variable "myArrayVariable", keeping any empty values. ex. "test;;test2" would not return the empty between ;;
{
"split": {
"property": "myStringProperty",
"delimiter": ";",
"removeEmptyValues": false,
"as": "myArrayVariable"
}
}
//Split the string in "myStringVariable" at the delimiter ";" and save the result in the variable "myArrayVariable"
{
"split": {
"variable": "myStringVariable",
"delimiter": ";",
"as": "myArrayVariable"
}
}
//Shorthand example, splitting property using delimiter "," and saving result in variable "split"
{
"split": "myStringProperty"
}
//Shorthand example, splitting variable using delimiter "," and saving result in variable "split"
{
"split": "$myStringVariable"
}