in reply to extract sequences of certain letters and assign it to a variable
Anyway, the shortest command in Perl that'll do what you ask for, is:
tr/zvxg//cd [download]