- Ctrl + H
- Найти что:
(?<=href=['"])[^'"]+
- Заменить на:
\L$0
- UNcheck Match case
- check Обтекание
- check Регулярное выражение
- Заменитьвсе
Объяснение:
(?<= # start lookbehind, zero-length assertion, makes sure we have before:
href=['"] # href= followed by single or double quote
) # end lookbehind
[^'"]+ # 1 or more any character that is not single or double quote
Замена:
\L # lowercase the following
$0 # content of group 0 (i.e. the whole match)
Результат для данного примера:
href="/category">Text</a>
<a href="/abc-xyz">Text</a>
<a href='/category/'>Text</a>