Solve "RegularExpressionMatching"