import re

should_match = r'.\asdf\fdsa'
shouldnt_match = r'potatos'

print(re.match(r'^\.\\', should_match))
print(re.match(r'^\.\\', shouldnt_match))

print(re.match(".\\.*", should_match))
print(re.match(".\\.*", shouldnt_match))