deal with regulare expression carefully