i using two host. but sometimes for one section one site get host1 and another site get host2.
i could have simply use ban host. but for other section I use one common host.
possible to do this?
what is in my mind is add [mark1][new_image]..[/new_image][/mark1]
Code:
(\[new_image\][\s\S]*?img2\.pixhost\.com[\s\S]*?\[\/new_image\])
[mark1]$1[/mark1]
after that remove all imgbox domain inside [mark1]...[/mark1]. and this is the part I am not sure how to do that.
Code:
input:
[new_image][newimg]https://images2.imgbox.com/c5/d8/vZh2jPTQ_o.jpg[/newimg] [newimg]https://images2.imgbox.com/b3/9b/3oQTPTz3_o.jpg[/newimg] [newimg]https://images2.imgbox.com/4e/d2/Vzbuvs9l_o.jpg[/newimg] [newimg]https://images2.imgbox.com/87/e9/VWIllfi6_o.jpg[/newimg]
[newimg]https://img2.pixhost.com/file/sw/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview1.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sx/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview2.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sy/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview3.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sz/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview4.jpg[/newimg][/new_image]
[new_image][newimg]https://images2.imgbox.com/c5/d8/vZh2jPTQ_o.jpg[/newimg] [newimg]https://images2.imgbox.com/b3/9b/3oQTPTz3_o.jpg[/newimg] [newimg]https://images2.imgbox.com/4e/d2/Vzbuvs9l_o.jpg[/newimg] [newimg]https://images2.imgbox.com/87/e9/VWIllfi6_o.jpg[/newimg][/new_image]
output:
[new_image]newimg]https://img2.pixhost.com/file/sw/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview1.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sx/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview2.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sy/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview3.jpg[/newimg] [newimg]https://img2.pixhost.com/file/sz/Bigfoot.Family.2020.3D.1080p.BluRay.x264-SURCODE_preview4.jpg[/newimg][/new_image]
[new_image][newimg]https://images2.imgbox.com/c5/d8/vZh2jPTQ_o.jpg[/newimg] [newimg]https://images2.imgbox.com/b3/9b/3oQTPTz3_o.jpg[/newimg] [newimg]https://images2.imgbox.com/4e/d2/Vzbuvs9l_o.jpg[/newimg] [newimg]https://images2.imgbox.com/87/e9/VWIllfi6_o.jpg[/newimg][/new_image]