0

I want to do what I've done for the first 30 lines in this picture:

Except I don't want to do it manually, because I have 1838 lines of text.

After this I could easily delete duplicates, and all lines which don't contain URLs, but right now it's kind of a mess.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Redronn
  • 1
  • 1
  • 2

1 Answers1

0

In your particular example, where all links are youtube videos as shown in the screenshot, the following should do:

Search:

(.+?)\b(https?://www.youtube.com(?:/watch\?v=\w*)?)\b(.+)

Replace:

$1\n$2\n$3

Don't forget to select the Regular Expression Search Mode radio button first.

In case you needed a more generic approach matching any URL, the regex could get much more complicated.

Community
  • 1
  • 1
psxls
  • 6,807
  • 6
  • 30
  • 50