Renaming a file with content

Hi,
I am a very new user of Hazel.
Having trouble getting it to work to my needs.
I received a file via email. In this file, there is a date in the format of - mm/dd/yy
My rule looks for the file “name”.
I wish to extract the date using “contains matching” and take the date elements (mmddyy) and rename the file to newname-mmddyy.
I can’t get this to work.
Help appreciated.
Jim P
I am a very new user of Hazel.
Having trouble getting it to work to my needs.
I received a file via email. In this file, there is a date in the format of - mm/dd/yy
My rule looks for the file “name”.
I wish to extract the date using “contains matching” and take the date elements (mmddyy) and rename the file to newname-mmddyy.
I can’t get this to work.
Help appreciated.
Jim P