Introduction

Microsoft’s home grown text editor is quite clearly rubbish. Notepad++ however is a great replacement. It allows for the use of regex which in the world of IT can be a massive time saver for repetitive tasks. I’ll keep this post as a repository of useful examples which might save me searching stackoverflow again! 😉

Examples

Find and remove an entire line beginning with the word ‘switch’:

.*switch.*\r?\n

Find the characters ‘Po’ followed by two consecutive numbers:

Po[0-9]{2}:
Notepad++ Find and Replace using Regex
Tagged on:         

Leave a Reply

Your email address will not be published.

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