regex help please
"Mike Kercher" <[email protected]> Wed, 28 Jan 2004 00:48:04 -0600
| Newsgroups | gmane.linux.admin.managers |
|---|---|
| Message-ID | <[email protected]> |
I am trying to get a pop-first authentication working the way I want.
I have 2 different regular expressions, but don't know the difference in the
two.
$s =~ /cucipop\[\d+\]:\s+\w+\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/;
$s =~ /cucipop\[[0-9]+\]: ([0-9\.]+) [0-9]+, [0-9]+ \([0-9]+\), [0-9]+
\([0-9]+\)/;
The first line is from the current app I use. The problem is that I
inherited some user accounts with .'s in them, and the first regexp doesn't
pick those up from my maillog.
The second regexp is from another pop-first app that DOES read the .'ed
usernames, but fails in another area. What I'm trying to do is make the
second regexp work in place of the first. Any gurus care to offer some
assistance?
TIA
Mike
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers