in reply to How to get a value from a file and save in another file

You should use a regex.
perl -n -e "@_ = $_ =~ m/(LA-\d+-\d+)/g; print qq(@_\n)" file


holli, /regexed monk/