Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Re: Regex for VTY Transport Compliance

$
0
0

You could use positive lookahead assertion, like this:

 

line vty 0 \d(.*\n)*? transport input ssh(?=\nline)

 

That would stop the regex, provided the next thing to follow were something other than a newline and the word 'line', starting the next directive. It fails if you change the transport to any.


Viewing all articles
Browse latest Browse all 8827

Trending Articles