2012-05-30, 04:38 PM
Hi, can anyone help me with extracting the hash + file type on imgur.com?
This is what I got so far:
I want it to give me:
[imgur]http://i.imgur.com/7eQM7.gif[/imgur]
$3 (Hash)
$4 (Filetype)
///
Nevermind, found the solution already:
This is what I got so far:
\[imgur\]http:\/\/([a-zA-Z]?)+(\.)?i\.imgur\.com\/(.*?)\[/imgur\]
(This only gives me: 7eQM7.gif in $3)I want it to give me:
[imgur]http://i.imgur.com/7eQM7.gif[/imgur]
$3 (Hash)
$4 (Filetype)
///
Nevermind, found the solution already:
\[imgur\]http:\/\/([a-zA-Z]?)+(\.)?i\.imgur\.com\/(.+)\.([a-z^\.]+)\[/imgur\]