Works for pastebin.com, but not dpaste.com, sprunge.us, ix.io, fpaste.org, ideone.com, paste.fedoraproject.org, hastebin.com, termbin.com, paste.debian.net, gist.github.com, bpaste.net, lpaste.net, pastee.com, irccloud.com, codepad.org or susepaste.org.
I currently have ~40 lines of regex for this, plus some custom logic for a few that don't have raw URLs at all. A service would be very convenient.
Some would say you're half way to building what you want... Launch and sell!
what in the world do you need this for?
"Guys - we don't need to pay for S3 when we can just use pastebin et al. - I'll get someone on HN to build the reverse service."