Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.utils.bug > #2226 > unrolled thread
| Started by | Bob Proulx <bob@proulx.com> |
|---|---|
| First post | 2017-12-06 11:31 -0700 |
| Last post | 2017-12-06 11:31 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.utils.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Bug of grep -E Bob Proulx <bob@proulx.com> - 2017-12-06 11:31 -0700
| From | Bob Proulx <bob@proulx.com> |
|---|---|
| Date | 2017-12-06 11:31 -0700 |
| Subject | Re: Bug of grep -E |
| Message-ID | <mailman.5241.1512585121.27995.bug-gnu-utils@gnu.org> |
iPack wrote:
> [urain39@urain39-pc ~]$ cat test | grep -Eo '[0-9a-f]{32}/[0-9A-Za-z\-%_\.]+'
> a4ff5caad2fa35faa2271df9badacd35/Konachan.com%20
>
> It is bug ? or just my syntax error ?
Recent versions of grep (at least on my Debian system) report this as
an invalid expression for the reasons already noted by others. Here
using your verbatim pattern (with the invalid \- \. escaping):
$ grep -Eo '[0-9a-f]{32}/[0-9A-Za-z\-%_\.]+' /dev/null
grep: Invalid range end
Updating would add this improved validation reporting capability. :-)
Bob
Back to top | Article view | gnu.utils.bug
csiph-web