Hello all,
I'm trying to parse a line out of a config for compliance purposes. Testing through Regex101.com works great, but SW seems to have a different interpreter.
This is a snip of the full config (see link below). I'm trying to ensure "login authentication" appears in the block with the following expression: (?<=^line con \d\n)((^\s+[^l][^\n]+\n)*)(^\s+login authentication[^\n]*\n)
!
line con 0
exec-timeout 30 0
password 7 xxxxxxxxxxxxxxxx
login authentication metscheme
transport output none
line vty 0 4
Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript
This fails compliance every time. Any ideas how to make it work?
Thank you