my $path = $ENV{HTTP_PATH_INFO}; my $regex_img = qr#]*)?src="(?]*)?>#; $body =~ s#$regex_img##igm;