As i’ve been going though my mock CCIE labs, I’ve had to modify the initial configs before beginning each lab. The main problem i have is my routers are ISR’s and thus have the #/#/# format for modules vs the older #/# format. I was searching for an easy way to modify all of the initial configs prior to starting each lab. I ended up solving my problem with notepad++ and regex.

Notepad++ allows you to open multiple files at the same time in separate tabs. Notepad++ then allows you to do a find/replace across all OPEN documents using regex.

I first opened all my initial router configs in notepad++ and used the following settings below. Make sure regex is checked and you press replace all in all open documents.

The [0-9] = any number from 0-9. (E.G. Serial0/0 Serial0/1)

The Replace string uses a \1 which is replaced with the first Parentheses value from the find string above.

REPLACE_ALL

notepad++ can be found at http://notepad-plus.sourceforge.net/uk/site.htm