Digit \d matching in regex

Do you have an example of what bracket issue you are having? [abc] works as does [[:digit:]] or [[:space:]] or even negating like [^abc] or [^[:space:]]. Most posix regex seems to work. \s and \S work but putting them in a class does not, as in [\s]