[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in grep
From: |
Eric Blake |
Subject: |
Re: Bug in grep |
Date: |
Thu, 02 Feb 2006 21:34:54 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Joshua Trimm on 2/2/2006 1:48 PM:
> echo "com.br" | egrep '[a-z0-9]\.[biz|org|net|info|com]+$'
Reread a good explanation of regular expressions. As a hint, this would
do the same thing:
echo "com.br" | egrep '[a-z0-9]\.[bcefgimnortz]+$'
>
> Please let us know of any resolutions, thank you.
You probably meant
echo "com.br" | egrep '[a-z0-9]\.{biz|org|net|info|com}+$'
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD4t1t84KuGfSFAYARAvvjAKCT0nbf6LZMZnHKMxe+xopBd5s4UgCfap7C
dtVFj3Uflg8iCZWXrkMq2ro=
=gk+t
-----END PGP SIGNATURE-----