in reply to Re: Parse variables from @output
in thread Parse variables from @output
Again, compare your regular expression against the string you're trying to match, and eliminate the differences:
system image file is: bootflash:\/\/\/n5000-uk9.7.1.5.N1.1.bin +\n /^\s*system image file is:\s*"(.*)"/mi
Maybe you want to use a more interactive tool to find where your regex fails, for example haukex's interactive Perl regex tester.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Parse variables from @output
by Cisco_Dave (Novice) on Nov 15, 2019 at 15:49 UTC | |
by Corion (Patriarch) on Nov 15, 2019 at 15:52 UTC | |
by Cisco_Dave (Novice) on Nov 15, 2019 at 15:55 UTC |
In Section
Seekers of Perl Wisdom