bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug of grep -E


From: Bob Proulx
Subject: Re: Bug of grep -E
Date: Wed, 6 Dec 2017 11:31:52 -0700
User-agent: Mutt/1.9.1 (2017-09-22)

iPack wrote:
> address@hidden ~]$ 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]