Skip to content

Instantly share code, notes, and snippets.

@morningtoast
Created October 25, 2014 03:43
Show Gist options
  • Select an option

  • Save morningtoast/07691de35bae8090466b to your computer and use it in GitHub Desktop.

Select an option

Save morningtoast/07691de35bae8090466b to your computer and use it in GitHub Desktop.
PHP image url regex
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