How to use PHP to regularly extract the address of a picture in markdown text

needs to match the addresses of all the pictures in the markdown text, and then output all
the following .md contents:

content
! [description] ( http://baidu.com/images/1.jpg)
content
! [description] ( https://baidu.com/images/2.jpg)
content
! [description] (/ upload/images/1.jpg)
content

the required results are:
http://baidu.com/images/1.jpg
https://baidu.com/images/2.jpg
/upload/images/1.jpg

Thank you, boss! Thank you, boss! Ask for help ~

Php
Jun.19,2022

not tested.


$partnner = '/\]\((.*?)\)/';
preg_match_all($partnner, $content, $match);

resolved, as above.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ea6c-2c434.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ea6c-2c434.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?