duplicated regex compilation removed