a little bit simplified of regexp.