Created
October 25, 2014 03:43
-
-
Save morningtoast/07691de35bae8090466b to your computer and use it in GitHub Desktop.
PHP image url regex
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
| preg_match_all("/(https?:[^)\"]+\.(?:jpg|jpeg)(?![a-z\/]))/i", $item["Body"], $matches); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment