Cyntexa interview question

check if two strings are matched, using regex concept, make your own regex-like function