S
S
Sergey Bashinsky2020-04-22 17:53:52
Regular Expressions
Sergey Bashinsky, 2020-04-22 17:53:52

How to do autocorrect?

Hello, please help me to complete the task.
There are 1k+ pages in which all links to pages are registered with .html, you need to change html to htm through autocorrect,
for this you need a regular expression something like href="(any characters).html" to href= "(any characters).htm"
changing from pure .html to .htm is not an option

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-04-22
@bashyn

(href="[^"]+\.)html"
replace with
\1htm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question