my @matches = ($_ =~ m/(
.*?)(.*?(?=))/g); #works. #my @matches = ($_ =~ m/(.*?)(.*?(?=))/gx); #doesn't work. my @matches = ($_ =~ m/(.*?)(.*?)/g); #got rid of lookahead. works.
))/g); #works. #my @matches = ($_ =~ m/(
.*?)(.*?(?=))/gx); #doesn't work. my @matches = ($_ =~ m/(.*?)(.*?)/g); #got rid of lookahead. works.
))/gx); #doesn't work. my @matches = ($_ =~ m/(
.*?)(.*?)/g); #got rid of lookahead. works.
)/g); #got rid of lookahead. works.