Notepad++ Organize IP Address List Numerically

Issue: Require numerically organizing a long list of IP addresses using the Notepad++ application

Solution: Use Regex expressions in the “replace” feature of this application.

Step 1

Open the replace dialogue. Please be sure to switch the Search Mode to “Regular expression” (by default the search mode is “normal”).

Search for:


Replace with:


Step 2

Sort the list with the option:

Edit >> Line Operations >> Sort lines Lexicographically Ascending

Step 3

Remove the spaces:

Search for:


Replace with:

Nothing! Leave this field empty…

Solution source:

Leave a comment