URL:
<http://savannah.gnu.org/bugs/?18633>
Summary: regular expressions case-insensitivity
Project: grep
Submitted by: robhinks
Submitted on: Friday 12/29/2006 at 20:08
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi,
I've run into some problems with grep's handling of regular expressions. When
I specify a range it returns characters outside the range.
When I type: grep '^[a-e]' filename
it returns all lines beginning with an a,b,c,d,e,A,B,C, or D (but not an E).
Similarly, if I type grep '^[A-C]' filename is returns all lines beginning
with A,B,C, b or c (but not a).
[EMAIL PROTECTED]:~/UnixProgramming$ grep '^[a-e]' addresses
DangerMouse, Trusty Red Pillar Box, Baker Street, London
Count Duckula, Castle Duckula, Translyvania
Donatello, Sewers, Manhattan
Babar, The Castle, Celestville
I found this behaviour very surprising and have been doing some investigating
to try and get to the bottom of the problem. No-one else seems to have
reported the same issue, however, I've discussed the issue with another
developer and their version on Windows (2.4.2) suffers from a similar
problem. The version I am running is grep (GNU grep) 2.5.1 for Linux.
Are you aware of this problem?
Thanks,
Rob
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18633>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/