On 2/27/2011 7:14 PM, Andy Buckley wrote:
usertokens = userstr.split([",", "_", "-"])
re beginner here; I let IDLE tell me the arg order:
import re; re.split('[,_-]','a_b,c-d')
['a', 'b', 'c', 'd']
Python-list is good for such questions.
--
Terry Jan Reedy