(Feb-27-2017, 07:15 AM)buran Wrote: however you need to take into account multiple spaces, new line, etc.
split() without arguments will do just that:
Output:>>> x='abcd efgh\tijkl\n mnopq'
>>> print x
abcd efgh ijkl
mnopq
>>> x.split()
['abcd', 'efgh', 'ijkl', 'mnopq']
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net