Bonjour

je voudrais faire un split avec 2 mots

exemple :

texte="un toto deux titi trois"

je fais un split sur toto et titi pour avoir comme resultat

res=["un","deux","trois"]

faire un split sur un mots c'est facile mais sur deux comment faire?