Test, validate and match regular expressions
Matches Cisco IOS configuration lines defining usernames, optionally capturing privilege levels. Useful for parsing network device configs to audit user accounts and their access levels. The regex anchors on 'username' at start of line (with multiline flag) and captures the username and privilege number.