D
D
Dmitry2021-02-26 09:23:28
Regular Expressions
Dmitry, 2021-02-26 09:23:28

Finding and replacing dots in title tags in notepad?

There are html files of the site, where all dots in the title tags need to be removed . Is there an expression that can clean all files from dots in the title?

<title>Слово. еще слово. другое слово.</title>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SOTVM, 2021-02-26
@sotvm

find: (<title>[^.]+)\.+(.+</title>)
replace: \1\2
or like this:
find: (<title>[^.]+)\.
replace: \1
check boxes: regular expressions, loop search

so try

6038b2aac0cf2060246145.png

PS
corrected, so it will be more correct (after all, the dot can also be at the beginning of the line)
find: (<title>[^.]{0,})\.(.{0,}</title>)
replace: \1\2
or
find: (<title>[^.]{0,})\.
replace:\1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question