Using matchData instead of =~ operator