>>> a='Beautiful, is; better*than ugly' >>> import re >>> re.split('; |, |*| ',a) ['Beautiful', 'is', 'better', 'than', 'ugly']