If only the content of the href attribute varies, this search should do the trick:
<a style="text-decoration:none" href=".+?">\.</a> if you have no other <a> tags with just a colon in it, you could probably boil it down to <a.+?>\.</a> Replacement text would be a space (of course). -Roland On Tue, Jan 28, 2020 at 5:31 PM Jefferis Peterson <[email protected]> wrote: > I am dealing with old hacked sites in Wordpress where there are injection > spam links on images. Also, need this for standard html sites. > > I have access to the database and would like to remove links that look > like this: > > > <a style="text-decoration:none" href="/ansaid-retail-cost">.</a> >> >> > > Now the link varies inside the href and it might be for cialas or any > product, but the rest doesn't vary. I want to remove the entire LINK, so > the result is a single space. > > I don't know regex, so I would appreciate the help. I've tried online > regex generators but they don't seem to be working. > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CABybPXbKMf5rGerUgLje24Csbfh8ToOGfWsi70AGLHGGmCByeA%40mail.gmail.com.
