Hello all,
I'm trying to match the following in my configs, but it is not matching in NCM. Through other regex tests, it does match.
tcp-mss {
ipsec-vpn {
mss 1360;
}
}
Using this regex: ^tcp-mss.*\n.*ipsec-vpn.*\n.*mss 1360;\n.*\n.*}
Any thoughts?
When it comes to multi-line matches, another issue to look out for would be the line break styles. Mostly we try to match with \n but there are config files which uses UNIX EOL character "\r\n".
So as a rule of thumb one should use (\r)?\n when trying to match newline characters. If you are not sure, open the config file in Notepad++, go to View -> Show Symbol -> Show End Of Line
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.