R
R
RaMzz2018-12-18 08:55:52
Regular Expressions
RaMzz, 2018-12-18 08:55:52

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

3 answer(s)
N
Nick Sdk, 2018-12-18
@lidacriss

actually,
https://toster.ru/answer?answer_id=1318104

A
Anton, 2018-12-18
@Eridani

Find: (^.*$)
Replace: [link]\1[/link]

A
aru001, 2018-12-18
@aru001

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 question

Ask a Question

731 491 924 answers to any question