\0 is the NUL byte, byte 0x0 . The range expresses a range of characters from 0x0 to "9" ( 0x39 ), which includes a bunch of characters like "+". In fact, the range covers the first 58 characters of the ASCII table. See http://www.asciitable.com .
So, "##########" will also match your regular expression.
source share