FreeKB - Python (Scripting) Split or cut apart a string
Python (Scripting) - Split or cut apart a string

The split operator can be used to split a string. In this example, the foo variable is split into the bar variable at each comma.

foo= "data,more data,even more data"

bar = foo.split(',')



Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 933e3 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |