**Problem Statement:**
Given the required input arguments, write an efficient algorithm to solve the **Regular Expression Matching** problem. Implement the required logic as specified by standard definitions for this classic algorithmic challenge.
**Hint / Expected Approach:**
2D DP with '.' and '*' transitions
**Edge Cases to Consider:**
- (1) Empty pattern matches empty string
- (2) Pattern is ".*"
- (3) Multiple consecutive '.*'