K
K
koskanalya2019-08-31 10:09:05
Notepad++
koskanalya, 2019-08-31 10:09:05

How to remove external links from text using Notepad++?

Please help me compose a regular expression to remove links from the text of the form . You need to cut the links but leave the word. The domain is the same.
<a href="https://site.ru/*****>слово</a>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-08-31
@dimonchik2013

try like this
replace with
<a href="https://site.ru/>

D
dodo512, 2019-08-31
@dodo512

https://regex101.com/r/mZus3o/1
Find: <a\s[^>]*href="https://site\.ru/[^>]*>(.*?)</a>
Replace:\1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question