📜  php regex markdown 链接 - PHP 代码示例
📅  最后修改于: 2022-03-11 14:53:48.895000             🧑  作者: Mango
代码示例1
$text = 'Link to [Google](https://www.google.com/)';
echo preg_replace('/\[(.*?)\]\s*\(((?:http:\/\/|https:\/\/)(?:.+))\)/', '$1', $text);
// Outputs: Link to Google