我正在编写一个脚本来检索帖子中的第一个图像链接
$content = [center]Hello World, this is my house: [img]myhouse.png[/img] blah blah blah blah [/center] This is another house [img]anotherhouse.png[/img] , blah blah blah
我只想返回“myhouse.png”并将其保存到变量中也img
应该不区分大小写,这意味着它可以工作[img]text-here[/img]
或[IMG]text-here[/IMG]