in reply to Re^2: Using grep on windows
in thread Using grep on windows

\d and 0-9 are not equivalent - you sure of that ?

From Using character classes we see:

\d is a digit and represents 1. 0-9

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^4: Using grep on windows
by ikegami (Patriarch) on Oct 27, 2009 at 17:45 UTC

    \d matches a digit. There are more digits than 0,1,2,3,4,5,6,7,8,9.

    $ perl -Mcharnames=:full -le'print "\N{BENGALI DIGIT ZERO}" =~ /^\d\z/ + || 0' 1

    The same thing, written differently:

    $ perl -le'print chr(0x09E6) =~ /^\d\z/ || 0' 1