- import re 
- text = "one,two or three   ,   four   or   five  or , or six , oR   ,  seven, ,,or,   ,, eight or qwertyor orqwerty," 
- print( re.split(r'(?:\s*(?:,|\bor\b))+\s*', text.rstrip().rstrip(',')) ) 
				aW1wb3J0IHJlCnRleHQgPSAib25lLHR3byBvciB0aHJlZSAgICwgICBmb3VyICAgb3IgICBmaXZlICBvciAsIG9yIHNpeCAsIG9SICAgLCAgc2V2ZW4sICwsb3IsICAgLCwgZWlnaHQgb3IgcXdlcnR5b3Igb3Jxd2VydHksIgpwcmludCggcmUuc3BsaXQocicoPzpccyooPzosfFxib3JcYikpK1xzKicsIHRleHQucnN0cmlwKCkucnN0cmlwKCcsJykpICk=
				
				
				
				
				
			 
			
				
			
			
				
	
		
		
	
	
		['one', 'two', 'three', 'four', 'five', 'six', 'oR', 'seven', 'eight', 'qwertyor orqwerty']