How to work with strings
How to concat strings
Use “Set Variable” action and set “Value Of Variable” to [[VARIABLE1]][[VARIABLE2]], like this:
The concat result will hold VARIABLE1 + VARIABLE2 afterwards.
You can also place delimiter between them:
How to generate random string
Use “Set Variable” action and set “Value Of Variable” to rand(), also need to set field type to “expression”.
Use rand(20) to generate random string with length 20. Function without parameters will generate string with length 10.
How to split line into pieces
Using “Parse Line” is quite straightforward, input line to parse and list of resulting variables, which is separated by commas:
The advantage of this method is that “Parse Line” understand different delimiters.
Another way is to use split function.
You can use split several times, for example, if you have url string like "http://google.com/?key1=val1&key2=val2&key3=val3" and you want to extract key2 value, fill “Value Of Variable” to [[URL]].split("&").split("=")
How to execute regular expression
To execute regular expression, you need to use “Set Variable” action and set “Value Of Variable” to [[VARIABLE_TO_APPLY_REGEXP]].match(/\d+/), also need to set field type to “expression”.
This regular expression will extract first number from string in variable VARIABLE_TO_APPLY_REGEXP.