Website Registration Script Filter

Still looking for good script filter code so that my site registration only allows visitors with “.edu” emails to authenticate. I’ve heard it called a black & white script filter also. Thanks.