finalized regular expression