Automated text file Editing -
i have text file looks similar this:
+phonenumber 3/5/15 7:16 pm text here +phonenumber 3/5/15 7:16 pm text here +phonenumber 3/5/15 7:16 pm text here +phonenumber 3/5/15 7:16 pm text here now problem lines this:
+phonenumber 3/5/15 7:16 pm text here runs down here +phonenumber 3/5/15 7:16 pm text here +phonenumber 3/5/15 7:16 pm text here runs down here +phonenumber 3/5/15 7:16 pm text here runs down here or longer now have lines vary in length, , things above examples. goal need every single line first example. ie want every line begin "+phonenumber" not text. of text should backspaced it's previous line finishes sentence. more this:
+phonenumber 3/5/15 7:16 pm text here runs down here +phonenumber 3/5/15 7:16 pm text here +phonenumber 3/5/15 7:16 pm text here runs down here +phonenumber 3/5/15 7:16 pm text here runs down here or longer i @ loss @ how script or me, i'm asking assistance. i've tried googling , nothing of assistance. editing every line hand, there on 30000 lines of text, , edit hand take forever. assistance appreciated. guys!
tldr; need script text previous line if line on doesn't start +
i suggest use 2 expression first replace \r\n space , (.*?)+ replace $1\r\n+
in notepad++ quick output
Comments
Post a Comment