new understanding for regular expression matching