modify regular expression condiction