in reply to Re: Curios use of regular expressions in split
in thread Curios use of regular expressions in split

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