Tag: recognizing prefixes and suffixes for P4