in reply to negating POSIX regexp classes doesn't work as expected
Keep in mind that [\d] and [[:digit:]] can match things other than 0-9. They match the Chinese character for 1, for example. You could just use [^0-9] to mean "match a character that's not 0, 1, ... or 9".