Eliminar "ejemplo" entre la cadena ahref

Eliminar "ejemplo" entre la cadena ahref

¿Pueden ayudarme con esto?

Sé que existe Ctrl + Alt y luego seleccionar, pero quiero usar un código similar a (ejemplo:(<a) "[0-9a-f-]")*

<a "Testt 22" href="https://test.com" data-href="https://test.com/">

to 

<a href="https://test.com" data-href="https://test.com/">

Porque lo acabo de hacer simpleinformaciónejemplo

Respuesta1

  • Ctrl+H
  • Encontrar que:<a \K.*?(?=href=)
  • Reemplazar con:LEAVE EMPTY
  • CONTROLAR Envolver alrededor
  • CONTROLAR Expresión regular
  • DESMARCAR . matches newline
  • Replace all

Explicación:

<a              # <a and a space
\K              # forget it
.*?             # 0 or more any character, not greedy
(?=href=)       # positive lookahead, make sure we have href= after

Captura de pantalla (antes):

ingrese la descripción de la imagen aquí

Captura de pantalla (después):

ingrese la descripción de la imagen aquí

información relacionada