[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20961] hyphen problem: '^[0-9\-_\.]\+$' doesnot work while '^[0-9_
From: |
anonymous |
Subject: |
[bug #20961] hyphen problem: '^[0-9\-_\.]\+$' doesnot work while '^[0-9_\.-]\+$' does |
Date: |
Mon, 03 Sep 2007 03:57:58 +0000 |
User-agent: |
|
URL:
<http://savannah.gnu.org/bugs/?20961>
Summary: hyphen problem: '^[0-9\-_\.]\+$' doesnot work while
'^[0-9_\.-]\+$' does
Project: grep
Submitted by: None
Submitted on: Monday 09/03/2007 at 03:57 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
$ cat > test.txt
1234-456
1345_456
23445.456
$ grep '^[0-9\-_\.]\+$' < test.txt
1345_456
23445.456
$ grep '^[0-9_\.-]\+$' < test.txt
1234-456 #this line is missing in previous run
1345_456
23445.456
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20961>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #20961] hyphen problem: '^[0-9\-_\.]\+$' doesnot work while '^[0-9_\.-]\+$' does,
anonymous <=