Match: prefixes and suffixes