extend_match: replace "^" mapping with "0"