HP3000-L Archives

January 1998, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 20 Jan 1998 15:34:36 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
Shawn Gordon wrote:

> Can anyone suggest a trick for validating that a logon string is > legit?
> So in a program someone enters "bob,manager.sys.pub" it will fail
> because of the ".pub"?

#!/usr/local/bin/perl
$logon=<>;
if ($logon !~ /^(\w{0,8}\,){0,1}\w{1,8}\.\w{1,8}(\,\w{1,8}){0,1}$/
 || $logon =~ /_/) {
     print "in";
     }
print "valid login\n";

Jeff Kell <[log in to unmask]>

ATOM RSS1 RSS2