regex shortcuts

I always seem to have trouble remembering these

Code Range Meaning
\d [0-9] digit
\D [^0-9] nondigit
\s [ \t\n\r] whitespace
\S [^ \t\n\r] nonwhitespace
\w [a-zA-Z0-9] "word char" : i.e. alphanum, not space or punctuation
\W [^a-zA-Z0-9] word separator" : i.e. space or punctuation, also not EOL or BOL

Find 3 or more Character words

import re
word=re.compile('[\w]{3,}')
word.findall(b)