Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $pattern = "/<img([^>]*) "."src="[^http|ftp|https]([^"]*)"/";
  2. $replace = "<img${1} src="" . $base . "${2}"";
  3. $text = preg_replace($pattern, $replace, $text);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement