Hi nwkcmk,
$text=' command = adb asd 2t525 command=adfaf adsgadg asd '; @arr=$text=~m#(command\s*=\s*[^\n]+)\n#gs; print "\n@arr";
In reply to Re: split but preserve the matching pattern
by gopalr
in thread split but preserve the matching pattern
by nwkcmk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |