Skip to content

Latest commit

 

History

History
9 lines (4 loc) · 206 Bytes

NOTES_REGEX.md

File metadata and controls

9 lines (4 loc) · 206 Bytes

The perfect regular expression...

(^|\n)(\s+)?PermitRootLogin no([\s#]+)?(#(.*))?(?=\n|$)

even more fun - this or that

(^|\n)(\s+)?(PermitRootLogin no|PermitRootLogin logan)([\s#]+)?(#(.*))?(?=\n|$)