@Cher 1/ I originally misspelled it - it's "regex", not "regez".
"Regex" is a powerful tool originally deriving from UNIX which allows you replace text with other text. And the text doesn't have to have a very specific combination of letters or symbols - you can also insert all sorts of placeholders, whether it's generic letters, numbers, and so forth. This goes both for the input and the output.
This is extremely useful for anyone who uses a lot of code - which in my case includes LaTeX, which I use for typesetting my books.
@Cher 2/ And Notepad++ is the single best "pure text" editing software for windows - and part of the reason is that it allows regex expressions in its "search and replace" function.
Your "taking dots out of a TOC" problem could probably have been solved by a single regex expression.
@juergen_hubert@Cher (Just coming ITT to mention that Emacs also has a "search and replace" function. AFAIK it can be installed directly from the WSL, since it can run on pure Wayland.)
(I'm not trying to correct you – this is great advice. But depending on your use case, Emacs also has a regex-based search-and-replace function.)