in reply to split but preserve the matching pattern
Hi nwkcmk,
$text=' command = adb asd 2t525 command=adfaf adsgadg asd '; @arr=$text=~m#(command\s*=\s*[^\n]+)\n#gs; print "\n@arr"; [download]