Hey Guys.
If I have a string say "abcdefg" how do i split the string without delimiters.
What i need is a list containing each of the chars:
e.g. ['a', 'b', 'c', 'd', 'e', 'f', 'g']
The string.split() method wont work as it requires a delimiter within the string to split on and returns ['abcdefg'].
Just going to use it for some error checking and validation used in a wx.TextCtrl in my GUI.
Cheers.
Ed
If I have a string say "abcdefg" how do i split the string without delimiters.
What i need is a list containing each of the chars:
e.g. ['a', 'b', 'c', 'd', 'e', 'f', 'g']
The string.split() method wont work as it requires a delimiter within the string to split on and returns ['abcdefg'].
Just going to use it for some error checking and validation used in a wx.TextCtrl in my GUI.
Cheers.
Ed
Comment