If it's one time, s{<img src="(?!/)(?!http:)}{<img src="http://domain.com/}g sounds like what you want. (Suppress replacement for both src="http:... and src="/...)
Do you really want the full http://domain.com/ there? Or would an absolute path beginning / be good enough? The latter might save you headaches if you start using multiple domains or secure pages (where some browsers will complain if there are non-secure references on the page).
In reply to Re: Find and replace with regex
by ysth
in thread Find and replace with regex
by JayBee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |