I'm trying to split a string like a && b || c && d || e on both && and || using re.split. I know you can have multiple delimiters by doing re.split("a | b"), however I don't know how to achieve this: re.split("&& | ||"). I attempted to escape the pipes by using re.split("&& | \\|\\|") however this doesn't work. 
How do I properly escape this?
 
     
     
     
     
    