using regex to loop through all digits in flickr url