i am trying to explode a string strictly after it finds 2 new lines and 5 or more spaces in a string.But should not explode if it finds less than 5 spaces or 2 new lines.
I have tried preg_split() so far , but it didnt seem to work out. So far i have i have tried preg_split("/\n\n\s\s\s\s\s*/"), but that didn't work out.
Also can i use explode function to for this purpose.
Aucun commentaire:
Enregistrer un commentaire