Represents a match
id of the matcher that matched
the actual string content
offset from 0 in input
the actual string content
id of the matcher that matched
offset from 0 in input
Return just the structure that was matched, throwing away offset and matcher information. This is useful if you want to store PatternMatches after you're done with their internal information.
Generated using TypeDoc
Represents a complex pattern match. Sets properties to expose structure. In the case of string properties, where we can't add provide the whole PatternMatch, we store that in a parallel object $valueMatches
Prefer SuccessfulMatchReport; use matchReport.toValueStructure() to get the object structure or matchReport.toParseTree() to learn about how it matches