Answer the question
In order to leave comments, you need to log in
How to replace all links in a file?
Hello
, there is a large file with text where there are a lot of links of this kind
https://yadi.sk/d/OLjfduerHJgfd
you need to wrap them all in [link] [/link] tags, but only so that they remain the same on those lines
, it’s not crazy I’ll add the regular https://yadi\.sk/.* to find them in Notepad, but how to change them so as not to break them and I don’t understand the file structure.
help me please
Answer the question
In order to leave comments, you need to log in
Notepad++ has the ability to record sequences of actions (macros). This way you can process the file.
That is, they turned on the recording, searched for the key phrase, inserted the opening tag, found the end of the link, inserted the closing tag, record the macro and run it many times until the end of the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question