(Table of contents & other stuff:  )

Filter links from HTML with these regular expressions

A quick & dirty way to filter all links from a given piece of HTML code. Does not filter attributes.

<\/*?(?![^>]*?\b(?:a)\b)[^>]*?>

This one is a bit greedier #

And also filters anchor texts and is a replace:

(?i)<a\shref=\"([^>]+)\">(.+?)</a>

Since it's a replace, replace the found matches with:

$1    $2
→ Call to action ←

Want more?

Then let's close the virtual gap between us by one step.