Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove text before | character in notepad++

Tags:

text

notepad++

I have a document like this, so i wan't to remove text before | character on any line. Work in notepad++. So what i can do?

enter image description here

like image 330
Kve Carrylol Avatar asked Oct 16 '13 04:10

Kve Carrylol


People also ask

How do you remove text before a specific character in Notepad++?

Do you want to delete everything before the | and including the | character. You can try find: (. +\|) and leave replace empty.

How do you delete text in Notepad?

Highlight the text in the Notepad box and press the Delete key on your keyboard. Type Ctrl + O, or right-click in the Notepad box. At the Save Notepad Changes prompt, click Yes.


1 Answers

Please use regex to remove anything before |

example

dsfdf | fdfsfsf dsdss|gfghhghg dsdsds |dfdsfsds 

Use find and replace in notepad++

find: .+(\|) replace: \1

output

| fdfsfsf |gfghhghg |dfdsfsds 
like image 105
demo.b Avatar answered Sep 23 '22 20:09

demo.b