my @matches = $input =~ /$re/g; my @splits = split /$re/, $input;