groovy split function splits all character in a string code example Example: groovy split string def (value1, value2) = '1128-2'.tokenize( '-' )