I working on a Regex that'll match both the following pieces of syntax...
1.
aaa accounting system default
action-type start-stop
group tacacs+
2.
aaa accounting system default start-stop group tacacs+
The best I've got so far is...
^aaa accounting system default (\n action-type |)start-stop(\n |) group tacacs\+
The above Regex will match syntax number 2 but not 1? Pulling my hair out! (I know it's probably simple but I'm a Regex newbie) Any ideas? There are spaces at the beginning of lines 2 & 3 in syntax piece number 1 but aren't being displayed to get a real look at how the syntax is presented take a look at the below Regex101 link. Thanks!
Here it is in Regex101...