Add regex version to containsFileWithContentMethod