Posted By

rwunsch on 03/17/12


regex html links anchor regular Expression href pregreplace anchors

Versions (?)

Who likes this?

3 people have marked this snippet as a favorite


Remove / Replace - href / anchor /link - in html /string - preg_replace - php - regex - regular expression

 / Published in: PHP

Replaces all links within href part of anchor in a HTML-String.

Report this snippet  


RSS Icon Subscribe to comments
Posted By: rwunsch on March 17, 2012

$pattern = '/(?

Posted By: lindarose11 on June 26, 2019

It is a great article. You will surely like this also because it is a great stuff Fireboy And Watergirl

You need to login to post a comment.