Created
September 13, 2016 07:33
-
-
Save johnxx/7d065f60559a8e3ca1b30198e2a6251e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$imgurPatterns = array( | |
'album' => '_http(s)?://(i\.www\.)?imgur\.com/a/(?<album>[A-Za-z0-9]*)_', | |
'gallery' => '_http(s)?://(i\.www\.)?imgur\.com/gallery/(?<gallery>[A-Za-z0-9]*)_', | |
'image' => '_http(s)?://(i\.|www\.)?imgur\.com/(?<image>[A-Za-z0-9]*)_', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment