Pattern Matching experiment. Can regex-like constructs be generalized to a point where they can be used to perform pattern matching on non-text datasets?