I can\'t for the life of me find an answer to this either on google or here or in the help files.
if \"test.c\" =~ \"\\.c\"
At first I thought