resolve Regular_Expression_Matching--brutal force