#	@(#) match.src 23.1 91/08/29 
#
#	Copyright (C) 1989-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
#  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,}$/)
