
There’s a great regex testing tool here: so you can experiment with building your own regex expressions. Regex is a very powerful method for handling text files but can be very confusing. That’s where the regular expression (regex) feature of Notepad++ can help. While a regular Find/Replace operation would find the particular lines to be deleted, it wouldn’t be able to handle the changes in the port numbers. Ideally, we’d just flag port 2/0/28 as different in the example above, since it doesn’t match the other two ports. The example text would look something like the following: Yesterday I was asked by a colleague to parse a Cisco switch configuration to find ports that are configured differently from an example port on a switch with several hundred ports on it. Same thing with other formats like XML, PowerShell, VBScript, etc. Open up an HTML file in Notepad++ and it knows about HTML formatting and changes the text color appropriately. You can open up multiple text files in tabs in Notepad++ and search across all the documents at the same time.Ĥ. I use this all the time when comparing firewall or switch configurations to see what has changed(or what needs to change when doing firewall migrations to new hardware.ģ.

There is a great Compare plugin in the Plugin Manager that lets you easily compare two text files. Can handle the large text files (think 100MB log files) with ease.Ģ. Notepad++ is one of my favorite text editors and I tend to install it on any computer I’m working with. While the built-in Windows Notepad only gets you so far, the free GPL Licensed Notepad++ has some big advantages:ġ.
