#
#	@(#) match.src 22.2 90/02/21 
#
#	Copyright (c) The Santa Cruz Operation, Ltd., 1988, 1989, 1990.
#	All rights reserved.
#
#  Syntax of acceptable passwords.
#
#  (1a)	If the proposed password contains lower case letters,
#	upper case letters, and digits, and the length is four
#	characters or more, then it may be Ok.
#
#  (1b)	If the proposed password contains no lower case letters,
#	no upper case letters, and no digits, and the length is four
#	characters or more, then it may be Ok.
#
#  (2)	If the proposed password contains both lower case letters and digits,
#	or both upper case letters and digits, or both lower and upper case
#	letters, and the length is five characters or more, it may be Ok.
#
#  (3a)	If the proposed password contains nothing but lower case letters,
#	and the length is six or more, then it may be Ok.
#
#  (3b)	If the proposed password contains nothing but upper case latters,
#	and the length is six or more, then it may be Ok.
#
#
#
(((/[a-z]/ & /[A-Z]/ & /[0-9]/) | !/^[a-zA-Z0-9]+$/) & /^.{4,}$/)
	|
((((/[a-z]/ | /[A-Z]/) & /[0-9]/) | (/[A-Z]/ & /[a-z]/)) & /^.{5,}$/)
	|
(/^[a-z]{6,}$/ | /^[A-Z]{6,}$/)
