Remove everything except a certain pattern

In order to remove anything but a specific text, you need to use .*(text_you_need_to_keep).* with . matching a newline. In Notepad++, use        Find: .*(phone=\S*?digits=1).* Replace: $1 NOTE: . matches newline option must be checked. I use \S*? instead of .* inside the capturing pattern since you only want to match any non-whitespace characters as few … Read more

Notepad++ add number in each line

You can use the “Column Editor” mode. First, select the column you want by holding Alt and dragging down the column. Then go to “Edit->Column Editor”, you will get a box that looks like this: Choose the “Number to Insert” button, then choose the starting value and the increment. It will replace the column with … Read more