in reply to help with regex
Change:
print "ONE: $1\n"; [download]
To:
print "ONE: $+\n"; [download]
To get the output you want.