in reply to Reg. Expression problem
Do you want to print 1 3 4 or 1 2 3 4? If you just want to get the last number(s) on a line, you could
print "$1 " if(/(\d+)$/);
If in fact you do not want to print the 2, I don't know what it is about that line which makes you want to skip it so you'll need to explain your problem in more detail.