How can I properly match for both of these image links using regex? I've been able to get away with /^http:\/\/\d+/ for awhile, but I've noticed lately some blogs contain image links without digits. I've come up with this, but I would like to know if I can do this better.
Standard:
/^http:\/\/(\d+|media)/
Alternate:
%r{^http://(\d+|media)}
Here are the blog images formats:
Code:
http://37.media.tumblr.com/avatar_c36b653e187f_30.png
http://media.tumblr.com/c106781145cf6c3b1f3cb993cd783cf2/tumblr_inline_mqcvcuoNlE1qz4rgp.jpg