Replace all matches with the regex expanded by $P_FROM with the text expanded by $P_TO in all regular files under current directory not going into subdirectories and modify the files in-place
find . -type f -maxdepth 1 -exec sed -i "s/$P_FROM/$P_TO/g" {} \;