Home MatchFunction Class
MatchFunction Class
Cancel

MatchFunction Class

Namespace: Json.Path

Inheritance: MatchFunction 🡒 LogicalFunctionDefinition 🡒 object

Implemented interfaces:

  • IReflectiveFunctionDefinition
  • IPathFunctionDefinition

Implements the match() function which determines if a string exactly matches a regular expression (using implicit anchoring).

Properties

NameTypeSummary
NamestringGets the function name.

Methods

Evaluate(JsonNode value, JsonNode pattern)

Evaluates the function.

Declaration

1
public bool Evaluate(JsonNode value, JsonNode pattern)
ParameterTypeDescription
valueJsonNodeThe value to test.
patternJsonNodeThe iregexp pattern to test against.

Returns

true if the whole string is a match for the pattern; false otherwise.

Contents