- or download this
$command =~ m/(!\w+\s?.+?)(?=!\w)/simg;
- or download this
my @commands = $command =~ m/(!\w+\s?.+?)(?=!\w)/simg;
- or download this
my @commands = $command =~ m/(!\w+\s?.+?)(?=!\w|\z)/simg;
- or download this
foreach my $command (@commands) {
...
}