I have several news items registered in a database, many of them have images that point directly to my site.
Only they have http, and since I've installed SSL on my site, I need them to have https.
I do not want to change anything in the database, so I need a preg_replace that changes from http to https, only tags in the src attribute.
This is not valid for links, just for images ...
Can anyone help me?