[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in grep
From: |
Joshua Trimm |
Subject: |
Bug in grep |
Date: |
Thu, 02 Feb 2006 14:48:39 -0600 |
We have found a major bug in grep using regular expressions, all we are
doing is switching the com, net, org around in the 'or' statement and it
produces different results, as per the example, these 2 should NEVER
match com.br, yet the 2nd one does:
echo "com.br" | egrep '[a-z0-9]\.[com|net|org|mil|ca|info]+$'
echo "com.br" | egrep '[a-z0-9]\.[biz|org|net|info|com]+$'
Please let us know of any resolutions, thank you.
- Bug in grep,
Joshua Trimm <=