Introduction

Ever need to remove a load of text from a file in notepad++? I’ll update this with useful ones as I find them.

Examples

To end up with the NFS path only and remove the highlighted text from multiple lines:

“/ifs/data/test/depot on /sso/test type nfs (rw,nosuid,noatime,nodiratime,nfsvers=3,vers=3,tcp,hard,intr,retrans=2,acdirmax=0,acdirmin=0,addr=192.168.12.26)

Use Regular Expression with \s to represent the space, then on for the word on and finally .* to include all remaining text e.g.

\son.*

Notepad++ Useful Find and Replace Examples
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.