Variable-length patterns