in reply to Why am I getting so many issues with REGEX!!!!
In your initial post..
I assume that the 'data' is a sample of the file content, but the data does NOT have a line that contains 'show running-config'. So looping through the data will do nothing, which will account for a number for errors.
Your 2nd 'code' posting seems to be unrelated to the first.
Perhaps it's time to take a step backward and more clearly define what it is you are trying to accomplish.
sudo-code... Parse data and sort into a data structure. Data structure to be: ???? Print (show desired output).
|
|---|