module UserPassRegexes

Stolen from github.com/GNOME/gnome-terminal/blob/master/src/terminal-regex.h

Constants

PASS

Optional colon-prefixed password. I guess empty password should be allowed, right? E.g. “:secret”, “:”, “” */

PASSCHARS_CLASS
USER

Nonempty username, e.g. “john.smith”

USERCHARS
USERPASS

Optional at-terminated username (with perhaps a password too), e.g. “joe@”, “pete:secret@”, “” */