The like operator is a pattern matching operator. Pattern matching is complex issue and is documented in a separate chapter in details. See chapter Pattern matching.