[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #18633] regular expressions case-insensitivity
From: |
Rob Hinks |
Subject: |
[bug #18633] regular expressions case-insensitivity |
Date: |
Fri, 29 Dec 2006 20:08:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9 |
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).
address@hidden:~/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/
- [bug #18633] regular expressions case-insensitivity,
Rob Hinks <=