$domain="http://www.google.com"; s|(<img [^>]*?src=")(?!$domain)(.+?)"|$1domain$2"|g; [download]
In reply to Re: Find and replace with regex by Anonymous Monk in thread Find and replace with regex by JayBee