preg_replace on actionLinks

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 23, 2015   (RSS)

By Djulia - February 23, 2015 - edited: February 23, 2015

HI,

I would like to hide certain erase links in a list.

I try to use this preg_replace. But that does not function.

$actionLinks  = preg_replace("/<a href=/\"/javascript:confirmEraseRecord('{$tableName}','{$record['num']}');/\"/>.*?<\/a>/", "", $actionLinks);

Would somebody have an idea?

Thanks!
Djulia

By Djulia - February 23, 2015

Claire,

Thanks! :)