On 09/10/2014 08:23 AM, nezhevenko wrote:
echo 'd' | grep -E '[A\-Z]'
d
grep is working correctly here, I'm afraid. Backslash is not special
there, so '[A\-Z]' matches 'A' and all characters in the range from '\'
through 'Z'. The size of the range depends on the locale; in some
locales th
Hello!
I know - egrep v 2.14 is not a last version, but i have no time to
verify in new version :)
Regexp [A\-Z] not work as 'A' or '-' or 'Z'
That finded all letters:
Example:
nezhevenko@nezhevenko:~> echo 'd' | grep -E '[A\-Z]'
d
nezhevenko@nezhevenko:~> egrep -V
egrep (GNU grep) 2.14
...