regular-expression-matching

I really need to review this problem multiple times! It’s just classic