modify regular-expression-matching