--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alas! David T-G spake thus:
> % Use perl or python or egrep of emacs or some of the more modern vi
> % clones etc.
>=20
> Agreed; a little perl one-liner was what I had in mind, since I vaguely
> recall that egrep is *not* the same as mutt.

Here you go:

while (<STDIN>)
{
  if (m/<the regex you are testing>/)
  {
    print "It matches!\n";
  }
  else
  {
    print "It doesn't match!\n";
  }
}

Then just run that script, and type a bunch of stuff into it's STDIN
(email addresses in this case), and it will tell you if they match or
not.

Was that so hard? ;)

--=20
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
Delta: We're Amtrak with wings.    -- David Letterman

--s9fJI615cBHmzTOP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8r9VOPTh2iSBKeccRAhKSAJ9KjNsWkOhv0wzjAW25Sc1qEuIPIACfckRT
Eh0xGfyMXBIGlvtM9HMhTcw=
=pxR/
-----END PGP SIGNATURE-----

--s9fJI615cBHmzTOP--

Reply via email to