If some file have in his name the string

please
i need link to macro that
check if any files on document folder
if some file have in his name the string "2010p" on it

i be clear
i need macro that let me know if any file in document folder, have in is name the word "2010p"

System finder can do this. Open Finder then
File > New Smart Folder
the little add button on the right of the finder window will allow you to add conditions to the search. It is really a search you can save as most smart folders are.You will see drop down menus you can choose conditions from. The obvious one is "Name" plus the next drop down box can be set to "contains".

If you want more complicated regex searches via Keyboard Maestro I think this macro would help, ready made for you by an expert here might help?