I need to parse this string:
$str = "
ABC
DEF
GHI
JKL" ;
into this array:
$arr = [
"
",
"ABC
",
"
",
"DEF
",
"GHI
",
"
",
"JKL"
] ;
I tried many combinations, but no luck:
$arr = preg_match_all("/[^
]+[
]+/",$str,$out) ;
What Regex can handle that?