update Regular_Expression_Matching using DP