Remove text before a certain string in every line

2019-08-19 00:36发布

问题:

So i have this list of items, and i need to filter out certain parts cause of the output used by a program. Example : Start (what it looks like currently) :

word1:word2:word3

all "words" have different sizes in text. i need it to look like :

word2:word3

Thanks in advance for any answers.

回答1:

To remove the first column from your : separated rows:

  1. press ctrl+h

  2. tick "Regular expression" in "Search Mode"

  3. Find what: ^[^:]+:(.+)$

  4. Replace with: $1

  5. Click "Replace" or "Replace All"



标签: notepad++