I have this regex, it's an exemple:
/par(tir|te|s)|(quitter.*maison)|((heure|quand).*(rendez-vous|journée))/i
I would like to split it by "|" in a regular expression but this character can't be inside parenthesis for the explode. So the expected result have to be that:
1: par(tir|te|s)
2: (quitter.*maison)
3: ((heure|quand).*(rendez-vous|journée))
My mind is in trouble, someone can help me?