Post in forum #243758 - Some raw tumblr links not working

To-mos said:
I wrote a regular expression with two capture groups for any scripters out there who want to use this to quick replace the "78.media" and "_[numbers].jpeg" parts

/http(?:s)://(\d*.media).tumblr.com/[a-z0-9]*/tumblr_[A-z0-9]*_([0-9]*).jpg/g

Here is mine:

(https?://)?([0-9]{1,2}.)?(media.tumblr.com/.*)1280.(jpg|png)

result[1]+result[3]+"raw."+result[4]

Will have to change if we have to use data.tumblr.com from now on.