V
V
Vitaly Frolov2017-11-04 09:45:56
HTML
Vitaly Frolov, 2017-11-04 09:45:56

Is it possible to replace lines in notepad++ or similar editor according to certain criteria?

In general, the question of such a plan. I downloaded the site using teleport pro, as usual in html there are lines like this -
tppabs="http://phpbbex.com/oldies/oldies.js"
Is it possible to somehow replace all lines according to such criteria - tppabs="hereanytext", so that the notepad finds the lines tppabs="hereanytext" and change them to a space, well, something like
Find: tppabs="*****"
Replace with: it's just a space.
well, or just delete all the lines tppabs = "*****"
There are a lot of html files, it takes a very long time to delete everything by hand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2017-11-04
@PARKERPR

Regular expression: tppabs=".+"
See the explanation at the top right https://regex101.com/r/46miuX/1
It is possible without any notepads, something like this:
If you have Windows, then just install cygwin, and these cool things will work.

I
Ivan, 2017-11-04
@ikode

screenshot_search_replace_4.png
Taken from here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question