Find all files ending with .txt in the current directory and its subdirectories, and search for strings that contain 3 or more hexadecimal digits or alphanumeric characters.
find ~ -name '*.txt' | xargs -r grep -iE "#([[:xdigit:]]{3}|[[:alnum:]]{3})+"