using php preg_replace to change html link's href attribute

后端 未结 3 2129
天涯浪人
天涯浪人 2021-01-05 10:31

I\'m trying to replace all link href\'s in a large string with a different URL. With the following code It seems to replace only the 2nd link leaving the first one intact, c

3条回答
提交回复
热议问题