Is there an easy way I can replace all the image urls in a WordPress export file with a different url which I can use to replace all the images with a placeholder image.
Currently in the xml file the paths to the images are as follows :
<guid isPermaLink="false">http://demo.mydomain.com/theme/wp-content/uploads/2016/10/IMAGE_161008_159-1500x1200.jpg</guid>
I need to change all the urls to something like this instead :
http://mytheme.com/placeholder-image.jpg
Any ideas how ?
ideally id like to do it using regex search replace in Atom
Thanks.
Find:
https*:\/\/.+(jpg|png|jpeg)[^<\]\]>]*
Replace:
http://mytheme.com/placeholder-image.jpg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.