Replace all non-alphanumeric characters with the number 1 in all files except those with the extensions txt, PDF, and exe in the current directory and its subdirectories.
sed -i -e 's/[^[:alnum:]]/1/g' $(find ./ -iregex ".*.[^\(txt\|PDF\|exe\)$]")