The file list the plots of several movies.
The line starting with 'MV:' is the movie
PL: is a line in the plot
BY: is the person who added the plot
For each movie
I want to place a '|'(pipe) after the title and move the plot to be after the pipe, delete 'PL:' and the line starting with BY:.
I have data like this
MV: The Twilight Saga: Eclipse (2010)
PL: Bella once again finds herself surrounded by danger as Seattle is ravaged
PL: by a string of mysterious killings and a malicious vampire continues her
PL: quest for revenge. In the midst of it all, she is forced to choose between
PL: her love for Edward and her friendship with Jacob -- knowing that her
PL: decision has the potential to ignite the struggle between vampire and
PL: werewolf. With her graduation quickly approaching, Bella is confronted with
PL: the most important decision of her life.
BY: Summit Entertainment
I'd like to change it to look like this
MV: The Twilight Saga: Eclipse (2010)|Bella once again finds herself surrounded by danger as Seattle is ravaged by a string of mysterious killings and a malicious vampire continues her quest for revenge. In the midst of it all, she is forced to choose between her love for Edward and her friendship with Jacob -- knowing that her decision has the potential to ignite the struggle between vampire and werewolf. With her graduation quickly approaching, Bella is confronted with the most important decision of her life.
This is what I've tried so far but - I keep having to push "Replace All"
Code: Select all
Find what: ^(PL:.*)\nPL:(.*)$
Replace with: \1\2
Thanks
Steve