Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.utils.bug > #2226 > unrolled thread

Re: Bug of grep -E

Started byBob Proulx <bob@proulx.com>
First post2017-12-06 11:31 -0700
Last post2017-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.


Contents

  Re: Bug of grep -E Bob Proulx <bob@proulx.com> - 2017-12-06 11:31 -0700

#2226 — Re: Bug of grep -E

FromBob Proulx <bob@proulx.com>
Date2017-12-06 11:31 -0700
SubjectRe: 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

[toc] | [standalone]


Back to top | Article view | gnu.utils.bug


csiph-web